Design thinking for better websites. Explore company profiles
Article Form attachment layout

File-upload control design: show selected files and their state

Plan file-upload control design around a clear selection action, readable file rows and distinct upload states, with a usable route alongside any drag-and-drop area.

Editorial flow diagram showing Choose files, Selected items, Transfer state, Correct or retry for file-upload control design.

File-upload control design should make it clear how to choose a file, which files are selected and what has happened to each one. Keep selection, transfer and any later processing visually distinct. If the interface includes a drag-and-drop area, provide an obvious file-selection action alongside it. The control should remain understandable when a filename is long, several files are added or one item fails while the others succeed.

Begin with the actual attachment task

Identify what the visitor needs to supply and whether one file or several are allowed. A profile photograph, a set of supporting documents and a large project archive create different layout needs.

Place the relevant limits near the selection action, using the actual accepted types and sizes supplied by the implementation owner. The designer should not invent convenient limits for the mock-up. If the task requires a particular kind of document, explain that before the person opens their device's file chooser.

This is part of designing forms people can complete, but attachment controls deserve their own state review because the selected material can have a life beyond an ordinary text field.

Make the selection route obvious

A visible button or clearly labelled native file control gives people a dependable starting point. A large decorative dashed rectangle is not enough if its only instruction is to drag something into it.

If dragging is supported, make the same task possible through selection without dragging. Keep the drop area connected to its label and instructions. Do not stretch it so far that it dominates a short form while hiding the actual action in a faint centre label.

Consider a hypothetical grant enquiry that accepts supporting documents. The visitor should understand where to select them without needing to know whether their device supports dragging between applications.

Give every selected file a readable row

Show enough of the filename to identify the item. Long names need a considered wrapping or shortening treatment that retains the useful distinguishing parts. Two files with the same visible beginning should not become indistinguishable through identical truncation.

Place file size and state where they belong to the relevant item. If removal is possible, make the action's relationship to that row clear. An unexplained cross floating between two rows can cause the wrong file to be removed.

Use the typography guide to keep supporting details readable. A compact attachment list still needs a clear distinction between a filename, a state and an action.

Separate selected from uploaded

A file appearing in the list may mean it has been selected on the device, not that it has reached the server. Show the state the product can actually confirm. Avoid a completed check mark before the relevant operation succeeds.

If transfer begins immediately, provide an understandable progress state. If it waits for form submission, the list should not imply that upload has already happened. Where a later processing stage exists, distinguish that too rather than leaving an apparently completed item unavailable without explanation.

The states need to remain clear without colour alone. A label or icon with a consistent meaning can support the visual treatment, while the implementation must also convey changes appropriately beyond the screen.

Design partial failure without clearing success

When several files are involved, one failed item should be identifiable without making successful items look lost. Keep the error close to the affected row and show a workable next action based on the actual problem.

For the hypothetical enquiry, an unsupported file type may need replacement, while a temporary transfer failure may allow retrying. Do not present the same generic action for both if their correction differs.

Preserve the rest of the form where possible. A visitor who has already written a detailed explanation should not have to reconstruct it because one attachment needs attention. Agree this behaviour with the developer and test the working version.

Review the awkward cases in the final page

Test several files, a very long name, repeated filenames, a cancellation and a failure after partial progress. Check the narrow layout, including whether action controls remain associated with the correct row.

Include this component in design quality assurance. Visual clarity does not replace the technical controls required for handling uploaded material; the design task is to expose the real rules and states honestly while the implementation enforces them.

Frequently asked questions

Is a thumbnail necessary for every file?

No. A preview can help identify an image, but many documents are better represented by a clear name and type. Avoid a generic thumbnail that adds space without helping someone distinguish their selected items.

Should users be able to remove a file before submission?

Usually they need a clear way to correct a mistaken selection. Decide how removal works within the actual process and make its scope visible, particularly if a file has already been submitted or saved elsewhere.

Can a green tick mean the document is acceptable?

Use it only for the state the system has established. Successful transfer does not necessarily mean the document meets every content requirement. Distinguish receipt from any later review or approval.