Skip to content
Sign up

File uploads

Every limit on files sent with a form, how to send them, and where they're kept.

A form can accept files alongside its fields. Files must be sent as multipart/form-data: a plain HTML form with enctype="multipart/form-data", or a FormData body sent with fetch. A JSON post can’t carry files.

Limits

Limit Value
Files per submission 10
Size of one file 100 MB
Size of one submission, all files together 100 MB

A post over any limit is refused with 413 and “This submission is too large.” Any files from that post that were already stored are removed, so nothing is kept from a refused submission.

Sending files

HTMLhtml
<form action="https://app.atomicity.dev/f/YOUR_FORM_ID" method="POST" enctype="multipart/form-data">
  <input type="email" name="email" required />
  <input type="file" name="attachment" multiple />
  <button type="submit">Send</button>
</form>
fetchjs
const formData = new FormData(document.querySelector("form"));

await fetch("https://app.atomicity.dev/f/YOUR_FORM_ID", {
  method: "POST",
  headers: { Accept: "application/json" },
  body: formData,
});

Don’t set the Content-Type header yourself when sending FormData. The browser sets it, with the boundary the body needs.

Where files are kept

Place What it shows
The submission Each file that came with it. Images and PDFs open in the browser; other files download.
The site’s Media library Every file sent to the site’s forms, linked back to its submission.
Webhook deliveries A link to each file that works without signing in for 7 days.

Anyone who can see a submission can open or download its files. Files that came with a submission are deleted with that submission; they can’t be deleted from the Media library on their own.

Safety

Uploaded files are treated as untrusted. By default a file only downloads, rather than opening in the browser. Only images and PDFs are shown in the browser, and only to someone signed in. SVG and HTML files always download. Files on a submission held as spam can still be opened, so you can check a false positive before marking it not spam.

Type to search…

↑↓ navigate↵ selectEsc close