javascript - plupload - send another request parameter with uploaded file -
javascript - plupload - send another request parameter with uploaded file -
plupload creates nice ids in file object. how id can sent upload script? upload script has 3 variables in $_post
- file name, chunk number , total number of chunks.
how add together parameter plupload's post request (in case, file.id)?
the first step add together handler beforeupload
event.
then, if using multipart, can alter uploader settings dynamically set different multipart params:
plupload_instance.bind('beforeupload', function (up, file) { up.settings.multipart_params = {fileid: file.id} });
(warning: illustration overrides , multipart_params, can play smarter setting fileid)
if not using multipart, options pass argument header, or manually add together param url each file (these 2 options should done within beforeupload). note when not using multipart, plupload add together name
, chunk
params url after url set uploader, each file, params go.
javascript file-upload upload plupload
Comments
Post a Comment