All support articles
Pro

How to accept file uploads in your form

On Pro, you can accept file attachments with your form submissions. The max size is 5MB per file.

1. Enable file uploads (Pro)

  1. Open your form in the dashboard.
  2. Go to SettingsSecurity.
  3. Toggle File Uploads on.
  4. Click Save Settings.

2. Update your HTML form to multipart

File uploads require multipart/form-data.

<form action="https://www.forms.fyi/api/f/<form_id>" method="POST"
      enctype="multipart/form-data">
  <input type="text" name="special-instructions"
         style="display:none" tabindex="-1" autocomplete="off" />

  <label for="email">Email</label>
  <input type="email" name="email" id="email" required />

  <label for="message">Message</label>
  <textarea name="message" id="message" required></textarea>

  <label for="attachment">Attachment (max 5MB)</label>
  <input type="file" name="attachment" id="attachment" />

  <button type="submit">Send</button>
</form>

Notes and safety

Treat uploads as untrusted

Attachments are provided by end users. Open downloads carefully and follow your organization’s security policies. Only enable uploads if you need them.