dropzone icon indicating copy to clipboard operation
dropzone copied to clipboard

Server responded with 0 code when uploading to S3

Open leondu opened this issue 13 years ago • 3 comments

I can upload file to S3 with dropzonejs, but after I added success_action_redirect in the fields, I got response as:

Server responded with 0 code

My question is how shall I handle the response from S3?

leondu avatar May 21 '13 14:05 leondu

I'm not familiar with S3 (although I have the feeling that I should look into it since that many users are requesting support for it) so I don't quite know what your problem might be.

To get the response from any Dropzone upload, you can simply use the success event which gets the server response.

Please provide feedback if you get it up and running.

enyo avatar May 21 '13 15:05 enyo

I guess it related to this: https://github.com/enyo/dropzone/issues/33

I've did the sign form action so everything the form passed to S3 actually work, and still work with Dropzone if I do not include the success_action_redirect field in the form fields. At that time I got empty reply from server on the success event.

For now I may try with another js upload plugin: https://github.com/blueimp/jQuery-File-Upload

leondu avatar May 22 '13 04:05 leondu

Sorry to here that. I'll make sure S3 is handled fine as soon as I have a little time on my hands.

enyo avatar May 22 '13 21:05 enyo