Closed abbasl7 closed 6 years ago
Turns out this is easy. If you specify a function for the extraData option, a single parameter is passed in which is the file id.
extraData: function (fileid)
{
return {
"fileid": fileid
};
},
You'll end up with a form field named "fileid" in your HTTP request that contains the id.
That's smart! Thanks, @dcaton 👍
While uploading the file, if 'id' can also be sent in the request along with file, it would be handy to deal with some situations where we use that as a unique identifier for each file.