React file upload component
Cannot find good examples of a simple file upload component in react + ts which accepts multiple file types like .pdf, .csv, .docx, etc. Any suggestions?
4 Replies
Unknown Userβ’2y ago
Message Not Public
Sign In & Join Server To View
Untested code, but it should be pretty simple to code one yourself:
You can pass in accept props to define what file types to accept, like accept=".pdf,.csv,.docx"
npm
use-file-picker
Simple react hook to open browser file selector.. Latest version: 1.5.2, last published: 2 months ago. Start using use-file-picker in your project by running
npm i use-file-picker
. There are 3 other projects in the npm registry using use-file-picker.Uppy uploader is the go to for me
https://discord.com/channels/966627436387266600/1068803756298346556/1070097148554780673