X

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:

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/

5 1 vote
Article Rating
Jeffrey:
Related Post