imorente / gatsby-netlify-form-example

Example site integrating Netlify's form handing in Gatsby's starter template
MIT License
138 stars 32 forks source link

File Upload Example #7

Closed thekevinbrown closed 6 years ago

thekevinbrown commented 6 years ago

Netlify support and I spent quite a while figuring out how to correctly encode a file input's value with fetch so that the Netlify backend could see it.

This example shows how to correctly handle file inputs with Netlify Forms + Gatsby + React + Fetch without any other technologies.

imorente commented 6 years ago

Oooooh, thank you Kevin for taking the time to open this PR 🙌 This is great!