New issue
Advanced search Search tips

Issue 860558 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 3
Type: Feature



Sign in to add a comment

Unable to drag a dynamically created blob from a page to Files app (DownloadURL is not supported)

Project Member Reported by paulkin...@google.com, Jul 5

Issue description

Chrome Version:69.0.3473.0 (Official Build) dev (64-bit)

OS: Chrome OS - 69.0.3473.0 (Official Build) dev (64-bit)

Platform	10820.0.0 (Official Build) dev-channel eve
Firmware Version	Google_Eve.9584.151.0
Customisation ID	GOOGLE-EVE
ARC	4861648

What steps will reproduce the problem?
(1) Visit https://drop-test.glitch.me/
(2) Drag the 'Drag this. It's supposed to be a file (Blob)'
(3) Drop it in to the Files App.


draggerBlob.addEventListener('dragstart', event => {
      const file = new File(['hello world'], 'testing.png', {type: 'image/png'})
      event.dataTransfer.effectAllowed = 'all';
      event.dataTransfer.setData('DownloadURL', URL.createObjectURL(file));
    
      console.log('dragstart - blob', event, event.dataTransfer.items)
    });


What is the expected result?

Chrome should start a download of the file that is referenced in the data transfer object and download it to the Downloads Folder.

The above code should start a download of the file on the site. 

This code works on Windows and Mac.

What happens instead?

Nothing, the Files App looks like it can receive the 'drop' but nothing is downloaded.

 
Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)

Sign in to add a comment