01"Where's that file?" is the question that kills adoption

Most enterprise products don't fail at document storage — storing a file is easy. They fail at retrieval: a user knows a document exists, remembers roughly what it's about, and still can't find it because it's not attached to the record they're looking at, or it's buried under a generic "Documents" tab with no filtering.

The moment users can't trust that "documents on this client" actually shows every document related to that client, they go back to email attachments and shared drives — and the feature is effectively dead even though it technically works.

02What keeps documents findable at scale

  1. 01

    Every file needs a mandatory parent

    Uploading without attaching to a client, project or entity should not be possible in the primary upload flow. An orphaned file is a file nobody will ever find again.

  2. 02

    Show documents where the context already is

    A document tab directly on the client or project record gets used. A separate global document module, disconnected from the record it's about, gets ignored.

  3. 03

    Categorize by document type, not just filename

    "Contract," "Invoice," "Correspondence" as a required field at upload time turns a flat file list into something filterable. Filenames alone almost never carry that signal reliably.

  4. 04

    Preview inline before download

    Forcing a download to check if it's the right file adds friction to every single lookup. A quick inline preview for PDFs and images saves that round trip almost every time.

  5. 05

    Version, don't silently overwrite

    Re-uploading a file with the same name should create a new version with history, not quietly replace the old one. Losing a prior version silently is a trust-breaking bug, not a minor inconvenience.

  6. 06

    Permission-scope at the folder level, enforce at the file level

    Users expect document access to follow the same role rules as the record itself. Design the permission model once, alongside the record's own access rules, not as a separate system.

03Storage is a solved problem; retrieval design is the actual work

S3 or equivalent object storage handles the "keep the bytes safe" part reliably and cheaply. The genuine design and engineering effort goes into the layer above it: enforced context, categorization, inline preview and permission scoping — the parts that determine whether a user finds the file in ten seconds or gives up and emails someone to ask.

Budget the project accordingly. A document feature that "just uploads to S3" is a fraction of the work behind a document feature people rely on.

04The route makes the parent mandatory

The simplest way to guarantee every file has a parent is to make the parent part of the URL. Documents live at clients/:clientId/documents, and with withComponentInputBinding() the route parameter arrives as a required signal input.

There is no route for documents without a client, so there is no screen where a file can be uploaded into nowhere. The upload component receives the clientId from its parent and never asks the user to pick one.

client-documents.component.ts
// clients.routes.ts
{ path: ':clientId/documents', loadComponent: () => import('./client-documents.component') }

export default class ClientDocumentsComponent {
  private api = inject(DocumentsApi);
  clientId = input.required<string>(); // bound from the route

  documents = toSignal(
    toObservable(this.clientId).pipe(
      switchMap((id) => this.api.listForClient(id)),
    ),
    { initialValue: [] as ClientDocument[] },
  );
}

<!-- template -->
<app-upload [clientId]="clientId()" />

The takeaway

Document management lives or dies on retrieval, not storage: mandatory context on every upload, surfaced right on the record it belongs to, categorized, previewable, versioned, and permission-scoped consistently with the record itself. Get retrieval right and people trust the system enough to stop emailing files as a backup plan.

Written by Jaymin MahetaSenior UI/UX Developer turning Figma designs into fast, accessible enterprise apps in Angular and React.
About me →