{"issue":{"milestone":null,"title":"Incorrect server response processing in IE 9, Opera 11","created_at":"2011-12-08T19:18:20Z","user":{"login":"senleft","id":812727,"url":"https://api.github.com/users/senleft","avatar_url":"https://secure.gravatar.com/avatar/bf90564b82f5be6bd4222118989f85a9?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"bf90564b82f5be6bd4222118989f85a9"},"labels":[],"updated_at":"2011-12-30T05:12:30Z","state":"open","id":2492970,"closed_at":null,"html_url":"https://github.com/valums/ajax-upload/issues/90","pull_request":{"patch_url":null,"html_url":null,"diff_url":null},"body":"I was trying to use fileuploader.js. It's work fine for FF, Chrome.\r\nIf I use IE9 or Opera 11.52 I have some issue: browsers suggest me to save the server response.\r\nThe FF server response and IE server response have the same content.\r\n\r\nFF server response\r\nhttp://pastebin.com/CK46UHB9\r\n\r\nIE server response\r\nhttp://pastebin.com/2KMMt3r2\r\n\r\nIf I save response I see the JSON content from server.\r\n\r\nFile content:\r\nhttp://pastebin.com/Ehx0nCKZ\r\n\r\nYou can see the client JS on the next link\r\nhttp://pastebin.com/sK8RhkWS\r\n\r\nThe onProgress and onComplete function is never invoked.\r\nJS console output\r\nLOG: Action: /jcommune/users/ieAvatarpreview \r\nLOG: File upload: avatar.jpg, ID: qq-upload-handler-iframe0 \r\n\r\nI'll appreciate you for any help, thank you!","number":90,"url":"https://api.github.com/repos/valums/ajax-upload/issues/90","comments":1,"assignee":null},"comment":{"created_at":"2011-12-30T05:12:30Z","user":{"login":"lafncow","id":686844,"url":"https://api.github.com/users/lafncow","avatar_url":"https://secure.gravatar.com/avatar/33b39bcce44feb50bd841a9cacbecaa1?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"33b39bcce44feb50bd841a9cacbecaa1"},"updated_at":"2011-12-30T05:12:30Z","id":3310974,"body":"Hi, this one bit me too.\r\nI believe IE9 regards iframed json responses (even of content type \"application/json\") as file downloads. The way around this is to change your response content type to \"text/html\".\r\nWhen this is changed, onComplete will fire. You may wish to file a separate issue for onProgress under IE9.\r\nSince this is not the fault of the plugin, but normal IE9 behavior, this issue should probably be closed.","url":"https://api.github.com/repos/valums/ajax-upload/issues/comments/3310974"},"action":"created"}