Learning While Aging

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/

0 0 vote
Article Rating
Subscribe
Notify of
guest
2 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Ian Nicholson
3 years ago

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
Naga
1 year ago

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

2
0
Would love your thoughts, please comment.x
()
x
Close Bitnami banner
Bitnami