weixiyen / jquery-filedrop

jQuery plugin - drag and drop desktop files and POST to a URL to handle files.
958 stars 285 forks source link

FIXED: Whitespaces replaced by plus signs in data #109

Closed nstCactus closed 11 years ago

nstCactus commented 11 years ago

When submitting data along with the files to upload, if the data contained whitespaces, they were encoded to plus signs. This is due to the use of jQuery.param() method, which is designed to work with data encoded as application/x-www-form-urlencoded. In this case, as we are submitting files, the enctype is multipart/form-data and whitespaces must be encoded as %20.