Dear Dimitar,
Thanks for the quick answer, I should defenitely check SO before posting here, sorry for that. The first link was sort of helpful but rather incomplete I’m afraid.
The good news is that there is a solution that worked for me: to change the server response MIME to text/html
. args.event.response
is then a string containing the JSON; I can parse it. However I’m fortunate enough to have control over the server process, that might not be a suitable solution in everey case.
Another proposed solution was to remove multipart/form-data
, but this is not possible when uploading files.
Another one wat to add a query string to the URL, didn’t work for me (I was suspicious about this solution anyway).
Finally, apparently, the definite solution is to use $.post
instead of ajaxSubmit
. However I suspect this call is buried somewhere in jqxfileupload.js
or jquery-1.11.1.min.js
.
Here’s the stack trace I get from Chromium, if it is of any value:
Resource interpreted as Document but transferred with MIME type application/json: “http://localhost:8080/…”.
a.extend._uploadFile @ jqxfileupload.js:7
(anonymous function) @ jqxfileupload.js:7
m.event.dispatch @ jquery-1.11.1.min.js:3
r.handle @ jquery-1.11.1.min.js:3
Thank you very much, jqxWidgets is fantastic,
Robert
Edit: hid the URL