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

Fixed, not yet flighted Issue #7260192


Michael S.
Apr 19, 2016
This issue is public.
Found in
  • Microsoft Edge
  • Internet Explorer
Standard affected

Found in build #
Reported by 8 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

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Christian F.”

      Changed Assigned To from “Christian F.” to “Divya G.”

      Changed Steps to Reproduce

      Changed Title from “Edge Doesn't Use download attribute for blob URI downloading” to “Edge Doesn't Use download attribute to set filename for blob URI downloading”

      Changed Status to “Confirmed”

    • 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.

    • Microsoft Edge Team

      Changed Status from “Confirmed” to “Fixed, not yet flighted”

    • 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.

    • Will the fix solve the issue shown in the w3schools example as well? Where a regular href is used, rather than a blob URI.

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

    Sign in