Skip to content
Discussion options

You must be logged in to vote

The example in the doc shows you how to get properly the file

const file = event.dataTransfer?.files[0] || event.target.files[0];

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@srinivasskeme
Comment options

@artf
Comment options

artf Jun 21, 2023
Maintainer

Answer selected by srinivasskeme
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants