Fixed upload problem in IE8 by returning the wrong mimetype for the JSON response