Error reason for "XHR returned response code 0"

user3509585 picture user3509585 · Oct 21, 2014 · Viewed 7.8k times · Source

I'm trying to use fineuploader to upload an image to a complete url (http://website.net/folder1/folder2/). However i'm receiving this error:

error on file number x - <file name>. Reason: XHR returned response code 0

Any ideas?

Answer

Ray Nicholus picture Ray Nicholus · Oct 21, 2014

Either you are attempting to make a cross origin request without the server returning proper CORS headers (or in a browser that doesn't support CORS) or the response is coming back completely empty due to a network error, or some browser extension may be messing with the request. You haven't provided any information about your situation at all, so this is the only answer i can offer.