- 
  Notifications
 
You must be signed in to change notification settings  - Fork 24
 
Accessing file content client-side #207
 
 
 
 
 Answered
 
 by
 AnimeAllstar
 
 
 
 
 
 AnimeAllstar
 
 
 
 asked this question in
 Q&A
 
 -
So, I'm making this web app to manipulate pdfs client-side/locally and I'm using dropzone-ui-react to upload files. The onChange prop in doesn't really provide access to the file content for each file. Could someone help me out with how I can access the file content from the files client-side? Am I missing something?
Screenshot of my work in progress:
image 
Beta Was this translation helpful? Give feedback.
All reactions
 
 
 Answered by
 
 AnimeAllstar
 
 
 
 Dec 22, 2021 
 
 
 I figured it out, turns out all you need to do is to use FileReader to read the files passed to the onChange function.
Replies: 1 comment
-
I figured it out, turns out all you need to do is to use FileReader to read the files passed to the onChange function.
Beta Was this translation helpful? Give feedback.
All reactions
- 
 
🎉 1 
 
 0 replies
 
 
 
 Answer selected by
 AnimeAllstar
 
 Sign up for free
 to join this conversation on GitHub.
 Already have an account?
 Sign in to comment