"download" attribute for DataURL of HTML <a> element doesn't work

Confirmed Issue #14603958 • Assigned to Travis L.

Details

Created
Nov 10, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
16.16299
Reports
Reported by 2 people

Sign in to watch or report this issue.

Steps to reproduce

May be the same as Issue #7160092, marked as fixed but not, just doesn’t crash.

Attachments

Comments and activity

  • Microsoft Edge Team

    Changed Assigned To to “Steven K.”

    Changed Assigned To to “travil”

    Changed Status to “Confirmed”

  • Hi,

    We were able to repro this issue.  A sort of workaround is to not use embedded/inline data and provide an external file.  Attached is my repro for this issue.  I say this is a “sort of” workaround because the data embedding inline still is not working.

    Thank you for submitting this issue,

    Steve

  • I have met this problem too. I want to download an image encoded in base64 and the element will have a very long “href” attribute beginning with "data:image/png;base64". When I use the F12 developer tools to edit this element and manually paste the base64 encoded string to href attribute, the string has been truncated to a limited size. I could only assign the base64 string to the href property of the anchor element object via the javascript code. I’m using a segmentation tool to segment some images of a dataset, and the segmentation result image has to be downloaded via a hidden link created by a button. The image will be encoded in base64 as the href attribute of element. However, I have to use Chrome just because Microsoft Edge has compatibility issue with this tool. The Github URL of this tool is : https://github.com/kyamagu/js-segment-annotator

  • @anonymous, thank you for the information.  I will take a look at the GitHub project, however, I believe just testing with a base64 encoded image and the download attribute should be enough to verify the issue.  Let me know if you disagree.

    Steve

  • Yes, you are right! Hope this issue can be fixed earlier. Thank you very much!

  • Microsoft Edge Team

    Changed Assigned To from “travil” to “Travis L.”

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

Sign in