Hello,
I have successfully implemented JQXFileUpload using Google Chrome, but when testing with IE I noticed an error. When it begins uploading (“uploadStart”), IE prompts the user for a file download containing the JSON response.
I’ve googled this issue, but many solutions are relating to AJAX calls and changing the contenttype to text/html. So in my WFC method I have added this code:
JavaScriptSerializer js = new JavaScriptSerializer();
string resp = "File was uploaded successfully";
string strJSON = js.Serialize(resp);
postedContext.Response.ContentType = "text/html; charset=utf-8";
postedContext.Response.Write(strJSON);
however it still does not work, as it still tries to download this response. The “uploadEnd()” method is never reached, because as soon as my WCF method returns the response, IE tries to download it as a file.
Has anyone else encountered this issue with JQXFileUpload, and is there a solution besides scrapping JQWidgets and using manual AJAX call?