Content-Disposition with '%20' in the file name and without file extension is not getting decoded in IE

Not reproducible Issue #11779136


Karuppiah S.
Apr 25, 2017
This issue is public.
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

In our application we are using file download. And in one of the case we are not giving the file extension and only the file name is being given.

And the filename will be having the spaces. Before it gets assigned to the Content-Disposition response header we are encoding those spaces by ‘%20’ as per the recommended ‘UTF-8’ encoding.

Eg: Content-Disposition attachment; filename="Additional%20material%20received%20from%20Correspondent"

The downloaded file also having the file name with ‘%20’ and not spaces.

But the same thing is working fine if we have the extension.

Eg: Content-Disposition attachment; filename="Additional%20material%20received%20from%20Correspondent1.msg"

This is working fine in other browsers with or without the file extension. Kindly review the issue and fix it in IE.



Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “James M.”

  • Hello,

    Thank you for providing your feedback on IE11. We are not accepting feedback on Internet Explorer through this portal any longer (unless security related). We welcome any feedback you have on Microsoft Edge through this website.

    Best Wishes,
    The MS Edge Team

  • Please note that even Edge has the same issue. We are looking forward for a fix from Microsoft. It can be easily reproducible.

    Please let me know in case you need any further details regarding this issue. I will be happy to help you.


  • Hello,

    Unfortunately, we are unable to reproduce this problem in Edge with the information at hand. Please update this case when you can provide more details, such as screenshots of the error or a sample website where we can download the problematic file. Additionally, please let us know which version of Edge or run dxdiag (Windows key + r and type dxdiag, enter, then click Save all Information) and attach the txt file.

    Thank you so much for providing this information about the issue.

    Best Wishes,
    The MS Edge Team

  • Hi Team,

    I have attached the following files.

    DxDiag.txt - dxdiag output - sample Java Server Application to reproduce the issue.

    Steps to deploy the application and test the use case:

    1. Extract
    2. Open the same in Eclipse EE (I have used Mars 2) / Deploy in any Java Container
    3. Run the page TestFileDownload.jsp
    4. Open the URL in IE.
    5. Click on "Get File".

    Now you can see that the file with the name “Test%20File%20Name%20No%20ext” gets downloaded as it is.

    Please let me know in case any more information is needed from my side.

    Karuppiah S.

  • Hello,

    Thank you for the repro project. When I run the jsp in IE11 and Edge, I am prompted to download a file named “download.txt” and not the expected file. Perhaps I am missing something for this repro. I have attached the results and console error. Please let me know if you see what I missed; thanks!

    Best Wishes,
    The MS Edge Team

  • Microsoft Edge Team

    Changed Status to “Not reproducible”

You need to sign in to your Microsoft account to add a comment.

Sign in