[Webkit-unassigned] [Bug 170168] Implement the DataTransfer constructor
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Dec 30 01:13:39 PST 2019
https://bugs.webkit.org/show_bug.cgi?id=170168
Jonathan <boyer.jonathan at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |boyer.jonathan at gmail.com
--- Comment #1 from Jonathan <boyer.jonathan at gmail.com> ---
This constructor will also allow the instanciation of a FileList (it currently works on Firefox / Chromium)
Without this API it's impossible to create a FileList from a File array
const data = new DataTransfer() // This is not working on webkit
files.forEach(file => data.items.add(file))
return data.files
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20191230/92c4c76a/attachment.htm>
More information about the webkit-unassigned
mailing list