blob saving (in regular pages) via injected anchor tag/msSaveBlob/msSaveOrOpenBlob automatically downloads blobs to temporary files (without asking the user for a save location) if the file extension is recognized by the system

Fixed Issue #10029510

Details

Created
Dec 1, 2016
Privacy
This issue is public.
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

var data = {
 foo: "bar",
 bar: “baz”
};

var blob = new Blob([data])

var filename = “test.txt”

let a = document.createElement(‘a’);
var url = window.URL.createObjectURL(blob);
a.href = url;
a.download = filename;
document.body.appendChild(a);
a.click();

Repro Steps

Run the following code in a regular page hosted on a web server

Expected Behavior

The download bar at the bottom asks the user where he or she wants to save the file
The file is saved and the bar at the bottom displays “<correctFilename> finished downloading”
The file is actually saved on disk in the correct location with the correct file name

Actual Behavior

The download bar at the bottom does not ask the user where he or she wants to save the file
The file is saved in a temporary location and the bar at the bottom displays “<correctFilename> finished downloading” (the latter part of this is correct. The file, however, should not be saved in a temporary location)
The file is not saved in the correct location and when it is opened, it does not
have the correct filename

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Title from “blob saving via msSaveBlob/msSaveOrOpenBlob does not prompt where to save if the file extension has a default assigned app in the system” to “blob saving via msSaveBlob/msSaveOrOpenBlob does not prompt where to save if the file extension in the filename parameter has a default assigned app in the system”

      Changed Assigned To to “Venkat K.”

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Title from “blob saving via msSaveBlob/msSaveOrOpenBlob does not prompt where to save if the file extension in the filename parameter has a default assigned app in the system” to “blob saving (in regular pages) via injected anchor tag/msSaveBlob/msSaveOrOpenBlob automatically downloads blobs to temporary files (without asking the user for a save location) if the file extension is recognized by the system”

      Changed Assigned To from “Venkat K.” to “Ryan C.”

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Steps to Reproduce

      Changed Status to “Confirmed”

      Changed Assigned To from “Ryan C.” to “Ben L.”

    •  This bug was investigated, and the root cause was determined to be the fact that Edge will automatically open any file with an extension it deems to be safe. This behavior may change in the future, but in the meantime, if you wish to force Edge to prompt the user where to save a file, the recommended workaround is to change the file extension to something proprietary. If you have any questions, please feel free to comment on this bug! 

    • Microsoft Edge Team

      Changed Assigned To from “Ben L.” to “Scott B.”

      Changed Assigned To from “Scott B.” to “Ben L.”

      Changed Title from “blob saving (in regular pages) via injected anchor tag/msSaveBlob/msSaveOrOpenBlob automatically downloads blobs to temporary files (without asking the user for a save location) if the file extension is recognized by the system” to “blob saving (in regular pages) via injected anchor tag/msSaveBlob/msSaveOrOpenBlob automatically downloads blobs to temporary files (without asking the user for a save location) if the file extension is recognized by the system”

      Changed Assigned To from “Ben L.” to “Scott L.”

      Changed Status from “Confirmed” to “Fixed”

    • This has been fixed in recent internal builds for internet sites, but will remain by design for intranet sites. 

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

    Sign in