File UploadsDocument & image uploads

File Upload Form

A form with a file input so users can send documents, images, or attachments with their message.

  • File input
  • Multipart encoding
  • Responsive
  • No dependencies

Fields included

  • Name
  • Email
  • Message
  • Attachment

How to Use This Template

  1. 1Sign up for a free Static Forms account to get your API key.
  2. 2Copy the HTML code above and save it as an .html file.
  3. 3Replace YOUR_API_KEY with your actual API key.
  4. 4Deploy the file to your website and start receiving submissions in your inbox.

Frequently asked questions

What do I need to enable file uploads?

The form uses enctype="multipart/form-data". Enable file uploads on your Static Forms plan to receive attachments in your notification email.

What is the maximum file size?

The current attachment limit is 4.5MB per submission. Larger files should be shared via a link instead.

Can I accept multiple files?

Add the multiple attribute to the file input to let users attach several files at once.

Start receiving form submissions today

No backend code needed. Sign up, grab your API key, and you are ready to go.