A browser-based file workflow can feel simple in the happy path: choose a file, process it, download the result. The hard parts show up around that path—large files, interrupted work, malformed inputs, and a user who is unsure whether anything happened.
Here are four failure cases worth designing for before polishing the success screen.
1. The file is valid, but too large for the chosen path
Define limits before processing starts. File size, page count, image dimensions, and supported formats can each affect memory and runtime. Show the relevant limit near file selection and validate again when processing begins. A clear message should tell the user what failed and what they can do next.
Avoid silently attempting work that the browser is unlikely to complete. For client-side processing, memory pressure and device capability vary, so test on constrained devices as well as a developer laptop.
2. Processing fails partway through
Treat a batch as a set of explicit states rather than one boolean. A useful model might distinguish queued, processing, completed, and failed items. If one item fails, preserve successful outputs and identify the specific item that needs attention.
This makes recovery smaller: the user can retry a failed item instead of repeating the entire batch. It also makes progress messages more honest than a spinner that gives no indication of what remains.
3. The user retries after a timeout or a slow response
A retry can arrive while the original operation is still running. For server-backed workflows, use an idempotency key or a stable operation identifier so a duplicate request does not create duplicate work. For local workflows, disable duplicate submission while the current operation is active and make cancellation behavior explicit.
The interface should distinguish “still working” from “failed” and provide a safe next action for each state.
4. The result exists, but the user cannot find it
Completion is not just a successful computation. Make the output action obvious, name the downloaded file predictably, and show which inputs produced which outputs. If the workflow keeps data only in memory, say so before the user navigates away.
A practical review checklist
- Validate inputs at the boundary and explain rejected files in plain language.
- Keep per-file status for batch operations.
- Make retry, cancellation, and duplicate-submission behavior explicit.
- Preserve completed work when another item fails.
- Test large files and low-memory devices.
- Confirm that users can identify and retrieve the final output.
These details are easy to postpone because they are not part of the demo path. In real use, they are often what makes a file tool feel dependable. Which failure state has caused the most confusion in a tool you have built or used?