Skip to Content
ExamplesFile Upload

File Upload

Formtorch accepts file uploads via standard multipart/form-data encoding. Add a file input to any form and the attachment is stored with the submission.

upload.html
<form action="https://formtorch.com/f/YOUR_FORM_ID" method="POST" enctype="multipart/form-data" > <label for="name">Name</label> <input id="name" name="name" type="text" required /> <label for="email">Email</label> <input id="email" name="email" type="email" required /> <label for="attachment">Attachment</label> <input id="attachment" name="attachment" type="file" accept=".pdf,.doc,.docx,.png,.jpg,.jpeg" /> <input name="_redirect" type="hidden" value="https://yoursite.com/thank-you" /> <button type="submit">Send</button> </form>

The enctype="multipart/form-data" attribute is required when your form includes a file input. Without it, the file will not be transmitted.

File size and type limits

LimitValue
Max file size per attachment10 MB
Max attachments per submission5
Accepted typesAny (filter with accept attribute on the input)

Use the accept attribute to limit what the browser’s file picker shows. This is a client-side hint only. TorchWarden validates types on the server.

Accessing uploaded files

Uploaded files appear in the submission detail view in the dashboard. Each file is listed with its name and a download link.

File uploads are not available on the Free plan. Upgrade to Starter or Pro to enable attachments.

Last updated on