File Uploader Drag & Drop Doesn't Work #11508
Labels
bug
Something isn't working
dev
Needs some dev work
severity 3
Affects minor functionality, has a workaround
Description
With the File Uploader, it seems as though only selecting a file with the
cds-file-uploader-button
works. If you try dragging a file into acds-file-uploader-drop-container
then thecds-file-uploader-drop-container-changed
event that gets triggered contains an emptyevent.detail.addedFiles
object, whereas thecds-file-uploader-button-changed
event does include the file if you select it via the button method.Please also note that the documentation is a bit of a mess in this regard. It includes a close
</cds-file-drop-container>
tag but no matching open tag - and I believe that's the wrong tag name too. Then further down in the docs it describes it as<cds-file-uploader-drop-container>
which I think is the correct name for the tag.Component(s) impacted
cds-file-uploader
Browser
Firefox
Carbon for IBM.com version
v2.2.0
Severity
Severity 3 = The problem is visible or noticeable to users but does not impede the usability or functionality. Affects minor functionality, has a workaround.
Application/website
Various tools for UK Labs
Package
@carbon/web-components
CodeSandbox example
https://codesandbox.io/p/devbox/angry-tdd-tcdd7y?file=%2Fsrc%2Findex.js&workspaceId=86f8ed98-9d3f-4673-98d9-cf7b51318032
Open the console and then try uploading a file from both drag and drop and then by clicking the button, and you can see the array is empty with drag and drop but not empty when using the button.
Steps to reproduce the issue (if applicable)
No response
Release date (if applicable)
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: