Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

FORM-008 Published

File upload form

A contact form that lets people attach files such as documents and photos.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | File upload form

File upload form UI design (desktop wireframe)

Wireframe (mobile) | File upload form

File upload form UI design (mobile wireframe)

What changes on mobile

  1. No drag-and-drop prompt: Dragging a file is not a natural action on a phone, so choosing with a button is the default.
  2. "Choose files" as a full-width button: A large target that makes it easy to pick from the photo library or the camera.
  3. Limits listed vertically: Side by side on a narrow screen they wrap mid-way and the boundaries get lost.
  4. Long file names truncated: The overflow is cut so the remove button stays where it is easy to tap, however long the name.

Before you choose this pattern | File upload form

Good fit

  • Documents or photos make the enquiry easier to understand
  • Reference material helps with quote requests or checking the current state
  • Drawings, copy, screenshots of a problem: things that are hard to explain in words alone
  • Quote request, repair and support, and application forms

Poor fit

  • No process for checking and storing received files (files may be left unattended)
  • The files are often too large for the form's limit (point people to a shared link instead)
  • Few fields, and sending quickly comes first (the <a href="/patterns/en/form-single-page/">single-page form</a> works better)

Why this wireframe works | File upload form

The limits are clear before choosing

Learning the format or size limit after choosing means preparing the file again. The accepted formats, per-file limit and maximum count are written right under the attachment field.

Each file shows its current state

With several files it is easy to lose track of which went through and which stalled. Each file shows whether it is uploading, attached, or why it cannot be attached.

One failed file does not wipe the rest

If one file is rejected for size, the other files and the typed input stay as they are. Only the failed file shows the reason and what to do, and only that file can be removed.

Large files still have a way in

Files over the limit cannot go through the form. How to send a shared link in the message is explained in advance. A link with an expiry or access restriction keeps the receiver comfortable too.

On mobile, files are chosen with a button

Dragging a file is not natural on a phone, and a prompt for it only confuses. There is no drag prompt; a full-width “Choose files” button is the default.

Common mistakes | File upload form

Formats and limits revealed only after sending

A “This format is not accepted” message after sending means starting over. Write the format, size and count limits in the attachment field and check when the file is chosen.

A failed attachment wipes the typed input

Some builds reload the page on a file error, losing the name and message too. Check files in place and let only the failed file be removed.

Sending is possible before the upload finishes

Pressing send mid-upload can send the form without the file. Ask people to wait until it finishes, and send only once the file is attached.

Received files stored where anyone can open them

Putting attachments where anyone with the URL can open them risks leaking quotes and documents with personal data. Store them where only the handling staff can open them, and decide the retention period and deletion procedure.

Judging a file by its extension

An extension can be faked by renaming, so it says nothing about whether a file is safe. Check the type and size again on the server and scan for viruses where appropriate.

FAQ | File upload form

Should attachments be required?

For most enquiries, optional is easier. Letting people ask without a document keeps the barrier low. Make it required only when the process cannot proceed without a file, as with application documents.

What size limit should I set?

Decide from your server and email limits and the files you actually receive. Too large a limit means long uploads and more people giving up midway. Explain how to send files over the limit by shared link, and even then recommend methods with an expiry or access restriction rather than a public link.

Can attachments simply be forwarded to a staff member’s email?

For small-scale operations, email can work, but size limits may block delivery, forwarding can go to the wrong person, and storage varies by person. With high volume or confidential files, keep them in an agreed location and let email only notify that something arrived.

How do people attach photos from a phone?

Pressing the choose button on a phone opens the photo library or the camera. Include image formats, and since photos tend to be large, prepare guidance for when they exceed the limit.

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published