Unable to drag a file from a page to Files app (DownloadURL is not supported) |
||
Issue descriptionChrome 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.
,
Jul 6
This should be implemented for the standard text/uri-list media type instead of the non-standard "DownloadURL" media type.
,
Jul 6
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
,
Jul 19
|
||
►
Sign in to add a comment |
||
Comment 1 Deleted