You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file is missing when I drag a file from the browser, for example an image is dragged and dropped from a google image search result page to the dropzone.
checkFile is called, but item.webkitGetAsEntry() returns null, so it uses the fallback to pass the DataTransferItem raw.
The (onFileDrop) output emits this DataTransferItem but it is empty (if it was not empty then I could have made a workaround for this bug).
There was a pull request to use getAsFile which seems to work for my use case #263, but it was reverted adcb504 (#268).
I'd be happy to create a pull request to fix this issue: use getAsFile but code it so it does not break folder uploads, maybe running it only when item.webkitGetAsEntry() == null would sidestep the problem.
The text was updated successfully, but these errors were encountered:
The file is missing when I drag a file from the browser, for example an image is dragged and dropped from a google image search result page to the dropzone.
Maybe related issue:
Versions:
ngx-file-drop: 16.0.0
angular: 16.1.3
chrome: 115.0.5790.171
I debugged the issue and this is what I found.
ngx-file-drop/projects/ngx-file-drop/src/lib/ngx-file-drop.component.ts
Lines 203 to 230 in 99180cf
checkFile
is called, butitem.webkitGetAsEntry()
returnsnull
, so it uses the fallback to pass theDataTransferItem
raw.The
(onFileDrop)
output emits thisDataTransferItem
but it is empty (if it was not empty then I could have made a workaround for this bug).There was a pull request to use
getAsFile
which seems to work for my use case #263, but it was reverted adcb504 (#268).I'd be happy to create a pull request to fix this issue: use
getAsFile
but code it so it does not break folder uploads, maybe running it only whenitem.webkitGetAsEntry() == null
would sidestep the problem.The text was updated successfully, but these errors were encountered: