File upload testing should cover selecting a file, validating it, transferring it, attaching it to the right record, and accessing it afterward. Check supported and unsupported samples, size boundaries, interrupted transfers, and account permissions. A completed progress bar is not enough: confirm the intended attachment exists and can be used by the right person.

WHAT YOU’LL TAKE AWAY

Verify the stored attachment, not only the progress indicator.

Use harmless files and explicit boundary cases.

Separate browser UX checks from server-side validation and access tests.

01

Define What an Accepted Upload Means

Imagine a fictional recruitment form that accepts a portfolio PDF. The applicant sees a filename and a green tick, yet the reviewer later opens an application without an attachment. To test the actual journey, describe success from both sides: the applicant receives a clear confirmation and an authorized reviewer can open the expected document.

Write down supported formats, maximum size, number of attachments, required fields, and replacement behavior. Specify whether uploading immediately stores the file or whether the final form submission attaches it. That difference determines what should happen when the applicant leaves the page.

Use a small sample pack with obvious labels, such as Portfolio A and Portfolio B. Give each file a known size and visible identifier in its content. These fixtures help distinguish a genuine replacement from a UI that changes only the displayed filename.

02

Check Browser Guidance and Server Validation Separately

MDN explains that the file input’s accept attribute guides file selection; it does not establish that the selected content has been validated. A file chooser that filters to PDFs is therefore only one part of the test. Confirm that the server applies the product’s documented requirements as well.

OWASP recommends multiple upload protections, including type and size validation, suitable storage, and authorization. Those controls require engineering and security checks beyond a browser walkthrough. Use harmless mismatched fixtures prepared for your test environment, not malware or a production storage target.

03

Build a Boundary and Recovery Matrix

Choose boundaries from the application’s specification. If the limit is described in MB, clarify the exact byte rule with engineering before calling an edge case a defect. Keep the fixture size and actual response in the report.

Sample or actionExpected check
Small supported fileStored and attached to the intended record
File exactly at the size boundaryMatches the documented acceptance rule
File just over the boundaryClear rejection with a next step
Unsupported harmless formatRejected without losing other form entries
Select and cancelExisting selection remains understandable
Replace file A with file BReviewer receives the intended replacement
Interrupted transfer and retryNo false completion or duplicate attachment
Submit while transfer is pendingState is explicit and final submission is consistent
04

Make Failed Uploads Recoverable

Interrupt a test transfer using a controlled test setup and record the point where the interface stops progressing. Look for a useful failure message and a clear retry or replacement action. If the form contains other completed fields, check whether the person must re-enter them.

Try a second upload after a rejected sample. Some defects appear only when the component moves from error back to success: a stale warning remains, the submit button stays disabled, or the rejected filename is attached despite a new selection. Repeat the final reviewer check after recovery.

On mobile, verify that the instructions remain visible around the native picker and that long filenames do not hide the remove or retry controls. Device behavior can differ, so include a real-device check for important mobile journeys.

05

Verify Access With Separate Test Accounts

Prepare an owner, an intended reviewer, and an unrelated test account. Check each role using the access rules agreed with the product owner. Seeing a hidden link in one interface does not prove that the underlying file access is restricted. Ask engineering to verify authorization at the retrieval endpoint.

Test replacement and deletion according to the documented product policy. Record whether an old attachment remains visible to the reviewer and whether any processing task continues to use it. These are product-specific expectations; do not assume that every service promises immediate removal from every backup.

06

Report the Whole Upload Journey

A useful report includes the fixture name and size, account role, device, route, release, exact steps, response message, and final attachment result. Keep screenshots free of personal documents and unrelated account information. Attach the harmless fixture if it is needed to reproduce the issue.

Cohorvix can help capture visible upload states and task evidence where the supported execution environment permits the interaction. Use separate integration and security checks for stored bytes, validation, scanning, and authorization. After a fix, replay the rejection-to-retry sequence and verify the reviewer’s result, rather than stopping at a green progress bar.

  • Acceptance requirements recorded.
  • Harmless sample pack prepared.
  • Size and format boundaries checked.
  • Recovery preserves an understandable form state.
  • Correct attachment verified by an authorized reviewer.
  • Server validation and retrieval authorization checked separately.
KEEP EXPLORING

Sources & Further Reading

The checklists and examples are Cohorvix’s suggested workflows. References support the specific technical guidance described above; they do not endorse Cohorvix.

  1. MDN: The accept attribute

    Explains the difference between file chooser hints and validation.

  2. OWASP: File Upload Cheat Sheet

    Security engineering guidance; this browser-oriented checklist is not a complete security assessment.

Published by Cohorvix Editorial with AI assistance. Product scope is described in Our Method. Educational guidance is not a full accessibility, security, or performance audit.

Put The Guide To Work

Choose a focused next step for your product.

FROM READING TO DOING

Bring A Question.
Leave With Evidence.

Explore Your Product