File uploads
Any contact form can become a file upload form: visitors attach files next to their message, and both arrive as one submission. Uploads are off until you enable them on the form, and the owner's plan must include a storage quota - a plan with no storage cannot receive files.
Turn on uploads
Open the form's Settings and, in the File uploads card, turn on Allow file uploads. Two sliders set the caps for one submission: Total upload size (1-5 MB) and Max files per submission (1-5).
Markup
A file upload form in HTML needs three things: method="POST", enctype="multipart/form-data" and a file input. Without the enctype, an HTML form file upload sends only the file's name, not the file.
<form action="https://sendform.net/!a8Kz3mXq12" method="POST"
enctype="multipart/form-data">
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<input type="file" name="attachment" multiple>
<button type="submit">Send</button>
</form>
Every file part in the request is considered, whatever its field name, so name the input after what it holds (attachment, resume, photos). The email and message fields stay required, as on any contact form.
One file or several
Without multiple, a file input takes one file. Add multiple to let visitors pick several at once, or use several file inputs. SendForm reads the files in order and keeps up to the form's Max files per submission, so set that slider to match your markup. An empty file input is ignored.
Two common examples
A resume upload form that takes one document:
<form action="https://sendform.net/!a8Kz3mXq12" method="POST"
enctype="multipart/form-data">
<input type="email" name="email" required>
<textarea name="message" required placeholder="A short note"></textarea>
<input type="file" name="resume" accept=".pdf,.doc,.docx" required>
<button type="submit">Apply</button>
</form>
An image upload form that takes several photos (set Max files per submission to 5):
<form action="https://sendform.net/!a8Kz3mXq12" method="POST"
enctype="multipart/form-data">
<input type="email" name="email" required>
<textarea name="message" required></textarea>
<input type="file" name="photos" accept="image/*" multiple>
<button type="submit">Send photos</button>
</form>
accept only filters the visitor's file picker. SendForm still checks every file against the allowed types below, and the size cap is shared by all photos in one submission.
Send files with fetch()
To upload without leaving the page, pass the form to FormData and ask for JSON. Do not set Content-Type yourself: the browser adds the multipart header with its boundary.
const form = document.querySelector("form");
form.addEventListener("submit", async (event) => {
event.preventDefault();
const res = await fetch(form.action, {
method: "POST",
headers: { Accept: "application/json" },
body: new FormData(form),
});
const data = await res.json();
if (data.error) {
// show data.error, see /docs/reference/errors
} else {
// show your thank-you message
}
});
The JSON reply confirms the submission but does not list the files, and a skipped file never causes an error. If a file is missing, check the submission in the dashboard.
Limits
| Limit | Value |
|---|---|
| Total size per submission | The form's cap, 1-5 MB (5 MB by default), shared across all files |
| Files per submission | The form's cap, 1-5 (1 by default) |
| Account storage | Whatever the plan's storage quota allows, across all forms |
The size cap is a combined budget for one submission, not a per-file limit, and the effective budget is the smaller of the form's cap and the storage left in the account's quota.
Allowed file types
Only these 32 extensions are stored:
| Group | Extensions |
|---|---|
| Images | jpg, jpeg, png, gif, webp, svg, bmp, heic, heif, avif, tiff, tif |
| Documents | pdf, doc, docx, xls, xlsx, ppt, pptx, odt, ods, odp, rtf, pages, numbers, key |
| Text and data | txt, csv, tsv, md, json, xml |
Anything else is ignored, including archives such as zip, since an archive can carry any file. Filenames are reduced to a safe basename (no directories, at most 200 characters).
What happens when a file is rejected
Uploads are best-effort and never fail the submission: a file that is too large, of a disallowed type, or over the account's storage quota is skipped, while the text submission is still stored and delivered. If a file was dropped specifically because storage ran out, the form owner is alerted.
Where files are stored
Files are kept in private storage, not at a public URL. Each one appears on its submission in the dashboard inbox, by filename in the notification email, and in the webhook payload's attachments list.
Images, PDFs and plain-text files can be previewed in the dashboard. SVG and HTML are download-only, since they can carry scripts.
The Files page lists every file across your forms. Filter by type or by starred submissions, delete single files, or bulk-delete all files, files older than 7 days or files older than 30 days, optionally keeping files on starred submissions. Deleting a form also deletes its files.