Handling File Uploads With Formspree


Hey Demo,

Many of the most useful support and contact requests have files attached. Formspree can take those uploads directly, no custom backend needed.

The setup is really straightforward:

  • In your <form> tag, set enctype="multipart/form-data" so the browser can send files correctly.
  • Add an <input type="file" name="attachment"> field. Use options like accept="image/png, image/jpeg" if you want to limit file types, and multiple if you want to allow more than one file.

Formspree stores each file so you can download it from the Submissions page. You can upload up to 10 files per submission, with a 25 MB limit per file and a 100 MB limit per request.

If you've been putting off adding file uploads because it felt heavy, using Formspree is much simpler than running your own storage.

👉 Read more about file uploads


//Cole
Cofounder, Formspree.io



Unsubscribe

Comments