How to fix ERR_RESPONSE_HEADERS_ MULTIPLE_CONTENT_DISPOSITION error in Google Chrome

Recently a support ticket was sent to me regarding an error customers get while trying to download a file with Google Chrome browser, and the error is ERR_RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION as shown below:

ERR_Response_Headers_Multiple_Content_Disposition

And this error only happens in Google Chrome browser, users of IE, FireFox, and Safari all can successfully download the file. After some further investigation, it turned out that the root cause was that the filename of the uploaded file contains a comma “,”. Apparently, while there is a comma in the header, Google Chrome would treat it as duplicate headers and throw out the above error, while other browsers just ignore the possible “duplicate” headers and continue to process the request peacefully.

The fix is easy once the root cause is identified. Before uploading a file to the server, you can either use JavaScript to restrict comma in the filename, or just completely remove the comma (or replace it with underscore).

Hope this helps.

Reference: http://www.gangarasa.com/lets-Do-GoodCode/tag/err_response_headers_multiple_content_disposition/

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
2 Comment authors
NagaIan Nicholson Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Ian Nicholson
Guest

I had a problem with this in Zoho Books accounting suite. I thought the problem may be that I was using PNG when their servers were telling the browser they were serving a JPG, but that wasn’t the case. Removed the comma and problem was solved! Thanks a bunch!

Naga
Guest
Naga

Cool, We had the similar problem, thanks for sharing!!