-
-
Notifications
You must be signed in to change notification settings - Fork 62
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Empty type for some file types in Chrome #34
Comments
Go ahead and give drag-drop@2.14.0 a try. I think this issue was fixed by cc0c84f CodePen demo: https://codepen.io/anon/pen/yKWJpe |
Thank you! In my tests |
@arturi What browser? Not all browsers support dropping a folder. |
This was a regression, you're right. See: #39 |
Thank you for the module! Been using it a while, great help!
Ran into a bug:
drag-drop
on a target element;.csv
(sample csv file) file on the targetfile
object returned from bydrag-drop
,type
will be empty;type
will be there for.csv
file.Demo: https://codepen.io/anon/pen/QqppOe.
The reason, I think, is that
drag-drop
is usinge.dataTransfer.items
, when it’s available, and then.webkitGetAsEntry()
and then.file(callback)
method on that. Somewhere in this chain thetype
gets lost. It remains, however, when calling.getAsFile()
instead of.webkitGetAsEntry()
: https://codepen.io/anon/pen/LzWWMQ.Found a Chrome bug report here: https://bugs.chromium.org/p/chromium/issues/detail?id=155455
The text was updated successfully, but these errors were encountered: