ProgerXP / FileDrop

Self-contained cross-browser pure JavaScript class for Drag & Drop and AJAX (multi) file upload.
filedropjs.org
The Unlicense
264 stars 61 forks source link

request function, fd.serialize(form) #80

Closed moscorp closed 3 years ago

moscorp commented 3 years ago

Sir, thanks for great support! Is that possible to achieve the serialize method ?!

Thanks,

ProgerXP commented 3 years ago

Due to supporting old browsers FileDrop requires that only one file is sent per request (the file takes all POST data for itself). The only way to supply data is via the query string; see this example. Therefore you should serialize data the way your application expects it, like by using jQuery's serialize() and appending it to sendTo()'s URL.