I can’t find any documentation on file uploads for Netlify forms using fetch for submission.
I am using Formik with yup for validation and need to send a form with a range of fields, including one field with multiple file uploads.
The form is successfully posting to Netlify with all other data using Object.keys, encodeURIComponent and .join("&"). But this won’t work for Files as it needs to send the File object. Any idea how I can send this data along with other fields so that Netlify recognises and has access to the files from the Form alongside this data?
This article was useful to get me so far with encoding data to post via fetch, but not for files. How to Integrate Netlify’s Form Handling in a React App | Netlify
Really appreciate the help.