New issue
Advanced search Search tips

Issue 860557 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 file 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 (Remote)'
(3) Drop it in to the Files App.

draggerFile.addEventListener('dragstart', event => {
      event.dataTransfer.effectAllowed = 'all';
      event.dataTransfer.setData('DownloadURL', 'https://paul.kinlan.me/images/me.png');
    });

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.

 

Comment 1 Deleted

This should be implemented for the standard text/uri-list media type instead of the non-standard "DownloadURL" media type.
There are two bits, the existing method should work, and the second is that the spec doesn't mandate that it should be a mime type.

That all being said I would love a standard way of getting this to work
Labels: -Type-Bug Type-Feature
Status: Available (was: Untriaged)

Sign in to add a comment