Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Accessing file content client-side #207

Answered by AnimeAllstar
AnimeAllstar asked this question in Q&A
Discussion options

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

You must be logged in to vote

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

Comment options

I figured it out, turns out all you need to do is to use FileReader to read the files passed to the onChange function.

You must be logged in to vote
0 replies
Answer selected by AnimeAllstar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant

AltStyle によって変換されたページ (->オリジナル) /