Example of Netlify Forms with file upload using React, Hooks, Fetch, react-dropzone

Hi! I just wanted to share a simple example of doing a form submission using Netlify Forms with a file upload in React. I’m using react-dropzone, but you can use a regular file input in its place. State is managed using useState hooks and submission is handled with fetch.

Demo: https://demo-react-netlify-form-file.netlify.com/
Repo: https://github.com/futuregerald/react-netlify-form-file

Let me know if you have any questions!


this is awesome <3 :muscle:

1 Like