问题
I'm using fine uploader in a rails application and I've made a gist of what my method and my jQuery script looks like here Here's my console log
and here's my upload returning failed when it actually didn't fail:
I thought this was just with my development server where files are being uploaded to FS but I tried it with my staging server that sends the files to a CDN server and it is still successfully uploaded with the same upload failed prompt:
回答1:
It looks like you are not including the mandatory "success" property in your response. It must be set to a value of true to indicate success. This is mentioned in the server documentation at http://docs.fineuploader.com/endpoint_handlers/traditional.html. There is an open case to remove this requirement for newer browsers, scheduled for version 6.0. See https://github.com/FineUploader/fine-uploader/issues/1325 for specifics.
来源:https://stackoverflow.com/questions/34990081/my-file-gets-uploaded-with-my-fineuploader-setup-but-yet-it-shows-upload-failed