Invalid backend response. Data is not JSON

Sep 26, 2012 at 7:59 AM

Hi,

I am experiencing a problem in a .NET port for Elfinder 2.0 rc1. Uploading a file will generate the "Invalid backend response. Data is not JSON." error message in IE8, while in IE9 there is no error but the "Loading" dialog box is never hidden and a page refresh is required to see the uploaded file.

No exception is thrown in the backend C# code, and the returned JSON is valid. Any suggestions? Does this occur in your port of the elFinder .Net connector?

Sep 27, 2012 at 9:47 AM

Answering my own question here because I found the problem.

IE8 and IE9 didn't handle Content-Type = "application/json" in the response header. Wrote a blog post about it, for anyone else with a similar problem: http://blog.degree.no/2012/09/jquery-json-ie8ie9-treats-response-as-downloadable-file/

Oct 7, 2012 at 5:47 PM
Edited Oct 7, 2012 at 5:47 PM

in my ie9 everything is ok. i'm using elfinder 1.2 script and last engine from here