Edge Doesn't Use download attribute to set filename for blob URI downloading

Fixed Issue #7260192


Michael S.
This issue is public.
Found in
Standard affected

Build #
Reported by 5 people

Sign in to watch or report this issue.

Steps to reproduce

The download attribute doesn’t appear to be used when “downloading” a hyperlink containing a blob href.
Test Case: https://jsfiddle.net/08dzeq3e/6/
IE => Doesn’t download at all
Edge => Downloads with filename"E0F5CA16-F4AA-4B18-9A07-BFDD1F0633BD"
Chrome => Downloads with filename “my-download.json”
Firefox => Downloads with filename “my-download.json”

Filename is also not set correctly when using a markup syntax like: http://www.w3schools.com/tags/tryit.asp?filename=tryhtml5_a_download2


0 attachments


    • This bug is confirmed and will be addressed, however to set expectations, it is not expected to make the summer update due to complexity of the fix.

    • A workaround while this is fixed is to use msSaveOrOpenBlob method. This will trigger an “Open or Save” prompt with the correct name.

      var jsonContent = fileContent;
      var blob = new Blob([jsonContent], { type: “application/json” });
      window.navigator.msSaveOrOpenBlob(blob, fileContent.name + “.json”);

      You’ll need to add your own logic to determine the browser type, etc.

      Hope this helps!

      • JC
    • The fix for this is now in code review.

    • Fixed in internal branch and making its way to Insider builds in the next 1-2 weeks.

    • Thank you for your work and notification :D

    • I still see download attribute issue in Version: 11.0.9600.18538. Also, msSaveOrOpenBlob gives download popup but, on click of open/save it always says, This file couldn’t be downloaded with retry button. Somehow the download & msSaveOrOpenBlob works fine in Version 11.0.9600.18537. Can you please clarify me the fix for this issue?

    • IE11 will not receive any feature fix.

    • So, what is the work around then to make it work in IE Version: 11.0.9600.18538.

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

    Sign in