-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
FileUploaderDropContainer - Cannot read property 'uuid' of undefined when dragging a file #4519
Comments
@emyarod Any thoughts...? Thanks! |
Can you please update... |
your code sandbox doesn't have the drag and drop uploader configured correctly and I cannot make any drop uploads. when I drop a file the browser will open the file (this doesn't happen in the Carbon component). the issue in the Carbon example is CORS related (ref codesandbox/codesandbox-client#667) and does not occur when testing outside of Code Sandbox to only display the last selected file you will have to call |
Thanks emyarod.
1.2. - using localhost:3000/MyAppName
But then, when dropping a file it's opened in the browser (like it was dropped outside the container):
BesidesIf the other functionality of browsing is working correctly, why it should differes with the dropping mode! If there is a CORS issue it will be for both behaviors as I get it! |
as mentioned in #4637 (comment), you can provide a value for the |
Still not working! I'll explain...
NOTE: the .dfproj file actually contains xml structure inside. it's an xml file WORKAROUND: I used accept: [".xml",".dfproj"],
So, seems there is an issue with the mime types of some other extensions that you don't support. |
does this persist in #4681? |
What package(s) are you using?
carbon-components
carbon-components-react
Summary
two issues:-
"Uncaught TypeError: Cannot read property 'uuid' of undefined"
BTW: same issue with the example provided by carbon in this sandbox:
https://codesandbox.io/s/github/emyarod/carbon/tree/dnd-uploader-codesandbox/packages/react/examples/drag-and-drop-file-uploader
So currently I can choose one file each time I browse, but the list of files will be incremented each time I pick a new file.
How to force the list items to display only the last selected one?
Relevant information
Sandbox:
https://codesandbox.io/s/brave-voice-bdrx0
The text was updated successfully, but these errors were encountered: