How should a quote form recover when a file upload fails?

A guide for custom website buyers who want visitors to attach a drawing when requesting a quote. It covers accepted file types and size limits, errors that screen readers can announce, mobile file pickers, network loss, duplicate submissions and how to write acceptance criteria. All examples are hypothetical.

Published by Mentrix Digital ·

Article cover: How should a quote form recover when a file upload fails?

Key points

  • State the file types, maximum size and number of files in the brief, and show these rules beside the field before anyone chooses a file.
  • Create a stable request reference when the form opens, so visitors can check receipt and the system can block duplicates.
  • The thresholds in this guide's acceptance criteria are illustrative, and the client must choose the final values before development starts.

Define exactly what the field accepts

Imagine a hypothetical kitchen fitter, Oakline Joinery, asking visitors to attach a floor plan when requesting a quote. Brief your developer with exact rules. For example, accept PDF, JPG and PNG files up to 10 MB, one file per request. Show these rules beside the field before anyone chooses a file. Note that the 10 MB figure is illustrative, and the client should confirm it after checking the size of typical drawings.

Paper form and tablet side by side
Show accepted file types and sizes beside the upload control.

Errors that everyone can understand

When a file fails, the message should name both the problem and the fix, such as ‘The drawing must be 10 MB or smaller.’ The GOV.UK Design System file upload guidance shows error patterns worth borrowing, including an error summary at the top and a message linked to the field. Ask the developer to connect the message to the input so screen readers announce it, and to move focus to the summary. See File upload.

Mobile pickers and an alternative route

On phones, the picker may open the camera, the photo library or file storage. Test each route on common iOS and Android devices. Offer an alternative for visitors whose drawing is on paper or inside an app the picker cannot reach. A simple option is a checkbox saying ‘I will send the drawing later,’ followed by an email address where they can send the file with their request reference.

Field technician submitting photo from smartphone
Test the drawing upload with a photo taken on a phone.

Network loss, receipt checks and duplicates

The file can reach the server even when the confirmation never reaches the visitor. Issue a reference when the request starts. Returning through the same session or a private recovery link should show whether the drawing arrived. Test by disconnecting just after upload, reconnecting and pressing submit again. The estimator should see one request. A reference printed on screen should never be enough on its own to retrieve a private drawing.

Keep other fields and write the acceptance table in prose

If an upload is rejected, keep every other field the visitor filled in, including name, phone number and project notes. Then agree an acceptance table written in plain prose. Row one says a 12 MB PDF is rejected with a linked error and all fields kept. Row two says a 4 MB JPG from an Android phone camera is accepted. Row three says pressing submit twice creates one request. These thresholds are illustrative until the client chooses the final values.

Discuss the upload acceptance checks with our team. Websites & Landing Pages →

Person resuming draft form on phone on a train
Return to the form and check that the project details survived.

Sources

  1. Standards guidance · GOV.UK Design System: File upload · Accessed

Want help applying this?

Tell us about your situation and we will suggest a scoped next step. We do not promise specific rankings, leads or revenue.

Discuss your project

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.