Closed dleffler closed 8 years ago
In your Javascript code, set this option for the uploader: multipart: false
The default for multipart
was changed from false
to true
with version 2.4 (indicated in the changelog).
I've tried that, but then it doesn't send back any parameters in $_REQUEST/$_GET (the 'data' parameter), nor is the name or filename sent
Try setting noParams: false
along with multipart: false
That seems to have done the trick, required explicitly setting both (back) to false. Thanks!
Glad to help.
And sorry for the annoyance. The reason for the change is that I think it will make it easier for people to use the plugin going forward by defaulting to the more broadly accepted method of uploading files (multipart form).
I'll update the Changelog with a little more detail. Let's also leave this issue open for a little while to make it easier to find in case anyone else comes across the same problem. Thanks for bringing it up.
I've been using this product for several years, but after moving from v2.3 to v2.4 it seems to have broken something. This upload is handled within php as an XHR but the file_put_contents($_destFullPath, file_get_contents('php://input')); only creates a zero-length file with no errors reported. Reverting back to the v2.3 file restores functionality.