Joseph Rex
Joseph Rex

Reputation: 1650

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

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:

enter image description here

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:

enter image description here

Upvotes: 0

Views: 120

Answers (1)

Ray Nicholus
Ray Nicholus

Reputation: 19890

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.

Upvotes: 1

Related Questions