-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No file upload with v1.0.4 #4
Comments
I need more information to fix this bug. How are you constructing the file upload widget? |
It's just a simple upload form. I will try to create a very simple test case for you. |
Still working on a test script for you, because it's a complex application where we use csrf-magic. For now, assume this: Given is a file upload form which calls an upload script via AJAX. I also have a custom csrf_callback() method. Here I've added these lines to see the difference:
Result for 1.0.4: POST: Array Result for 1.0.3: Nothing, as the callback is not called. Adding the same code to the upload handler gives:
|
My config:
|
Found reason:
Old line was
Dunno what this is for...? |
To be more precise... After changing that line in the old js (v1.0.3), I got the same error. After removing the change, the error was gone again. But after changing that line in v1.0.4 to the old version, the error is still there. I am confused now. |
Sorry, I mixed up old and new line. After changing that line in v1.0.4 to the old version - which is the one with 2x \v - the upload works again. |
I can guess the high-level problem: AJAX and file uploads are not working. (Can it be reproduced with ordinary AJAX?) Can you summarize your investigation in the various few comments? Some of it doesn't seem consistent with what I remember happening in the code. Note that 1.0.2 and 1.0.3 are incorrectly labeled in source as 1.0.1. |
The solution that worked for me was to change line
back to
Sorry for confusion. |
Well, you're just turning off the version detection. But maybe this is a good clue |
I am working with Firefox 31. Let me know if I can do something. |
Was this a problem after the json object fixes? I suspect not. |
After upgrading from 1.0.1 to 1.0.4, file uploads are no longer possible. It seems the JS scrambles the form data somehow. On the server side, $ _ REQUEST and $ _ POST are just empty.
After replacing the JS with the old version, uploads are working again.
The text was updated successfully, but these errors were encountered: