AnsweredAssumed Answered

Upload Post causes browser download.

Question asked by bigbadowl on Mar 9, 2010
Hi All

I've successfully got the upload example from the wiki to accept a file. The file goes up fine and the JSON message is positive, but when the JSON returns, the browser downloads it instead of processing it. All the other GET requests work fine. I've tested various browsers.

Now there is one extra component, all web script requests are going through a java based reverse proxy configured as part of the Tomcat web-app. I'm not sure if the response header needs something set that is being missed.

The logged out the relevant settings from the HttpURLConnection which I assign to the HttpServletResponse
Content-Type: application/json;charset=UTF-8
Content-Disposition: null (ie:*not set*)

Many thanks