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.
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.