← Blog

Make file upload requirements explicit

Specify the permitted purpose, file types, size, access scope and retention owner before adding an upload control. A filename is not proof of content validity.

FiFirst
November 12, 2026 · 1 min read

Short answer

Specify the permitted purpose, file types, size, access scope and retention owner before adding an upload control. A filename is not proof of content validity.

Specify the permitted purpose, file types, size, access scope and retention owner before adding an upload control. A filename is not proof of content validity.

Define the file's purpose and audience

Decide which types and sizes are allowed, who may open a file and how long it is kept. Put those limits beside the upload field.

Handle rejection without losing the request

Explain an unsupported type or oversized file clearly. Preserve the form and let the user replace the attachment. Treat content validation and scanning as separate implementation work.

Try it with a sample

Try an allowed sample, an unsupported file and a file that exceeds the chosen limit; check the visible error and whether the original draft survives.

What a useful result looks like

A rejected attachment leaves the rest of the draft intact and explains how to correct it.

Before using real records

Malware scanning, sensitive-data handling and provider storage require separate controls.

Try it in First

Frequently asked questions

What should I look for in the first version?
A rejected attachment leaves the rest of the draft intact and explains how to correct it.

Keep reading

View all