SyntaxFix
Write A Post
Hire A Developer
Questions
Above answers are pretty sufficient. Additional to the onChange, if you upload a file using drag and drop events, you can get the file in drop event by accessing eventArgs.dataTransfer.files.
onChange
drop
eventArgs.dataTransfer.files