Visitor attachments: files in a form with no login
How to let people without an account in your app attach a photo or a PDF to a public form, and what happens to the file afterwards. It is on every plan, Free included, and it uses no credits.
Where it is
The Data tab, in the editor. Pick the form's model and open Permissions. Below the access rules is the Visitor attachments card, listing that model's image and file fields. Tick the fields that may take a file from someone who is not signed in.
When your request describes a public form with an attachment, the builder usually ticks the field itself. The card is there to check it and to change it later.
When the card is available
Only on a model where anyone can create records and reading requires a login. That is the shape of a public form: the visitor submits, and only your team sees what arrived.
If reading is also open to the public, the card is locked and says what to change. That combination would let anyone download other people's files, which is why it is not allowed.
What a visitor can send
- in an image field: JPG, PNG or WEBP;
- in a file field: JPG, PNG, WEBP or PDF;
- size: up to 5 MB per file. The field can set a lower limit;
- how many: one file per field. For three photos, create three fields.
The attachment travels with the form submission. A visitor cannot attach a file to a record that already exists.
Not accepted: video, audio, Word and Excel documents, compressed archives (ZIP), SVG and HEIC photos.
What happens to the file
- checked on the server. The type is decided by the file's content, not its name. Every image is re-encoded, and the data hidden in it, such as GPS location and camera model, is removed. A PDF with active content is refused.
- stored privately. The file has no public address. It opens only for people who can read the record, and the link the app gets to show it expires after a short time.
- one file, one record. Each uploaded file can be attached to one record only. A file that never gets attached to a record is deleted automatically.
The check is not an antivirus scan. That is why the list of formats is short.
Limits that protect you
- per address and per project, per day: visitor attachments have a ceiling, so nobody can use your form to fill your storage;
- a share of storage: visitor files, all together, use at most 30% of your plan's storage. The rest stays free for the files you and your team upload.
Deleting a record also frees the space of the visitor file attached to it.
When something goes wrong
- "file too large": over 5 MB or over the field's limit. The person can shrink the photo on the phone and try again;
- "type not accepted": the file is not JPG, PNG, WEBP or PDF, or it is a PDF in an image field;
- "file refused": the content did not pass the check, for example a PDF with active content or a password-protected one;
- "storage full": visitor files have reached 30% of the plan's storage. Delete old records or change plan;
- "too many attempts": that address, or the app for that day, has reached its attachment limit. Waiting is enough.
The exact wording the visitor sees is your app's, and you can ask to change it like any other text.