My file gets uploaded with my fineuploader setup but yet it shows upload failed. What is the reason for this?

旧城冷巷雨未停 提交于 2019-12-12 01:34:48

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!