All lessons Leer en español

Security in depth · Unit 20 · Lesson 20 of 27

Uploads are a lifecycle, not a checkbox

Follow one uploaded document through acceptance, processing, and retrieval.

4 minreadyShort lesson

Helpful before thisWeb applications

See all lessons in this topic

After this lesson you can

  • Identify why a successful scan does not approve document processing and access.

Accepting a file begins its lifecycle; it does not approve every later use.

Follow the next consumer

An uploaded filename and declared content type are claims. A browser’s file picker can guide selection, but server checks must enforce the accepted formats and limits. Quarantine is a restricted holding stage separating accepted uploads from files approved for later use.

Each later consumer adds a decision. A preview converter interprets content and consumes resources. Storage determines who can read or alter the result. Download handling determines which authenticated person may receive it. A scanner’s favorable result cannot answer all those questions.

Upload claims → Isolated processing → Controlled retrievalUpload claimsIsolated processingControlled retrieval
The intended lifecycle contains separate approval points. Isolation and controlled retrieval must be evidenced, not inferred from the first scan.

Fictional document record

Assume a community grant portal accepts private PDF applications. Applicants and assigned reviewers may read them; the public may not.

  • U1: Document D14 is below the size limit. Server format checks pass, and the scanner reports no detection at the recorded time.
  • U2: A converter will produce a preview. Its processing limits and access to other documents are not documented.
  • U3: The original remains in restricted storage. The planned preview download has no documented ownership or reviewer check.

Decide what may advance

U1 supports acceptance into quarantine under this policy. “No detection” is a bounded observation, not a promise that every parser will handle the document safely. U2 needs limits on processing time, memory, and permissions. U3 needs authorization for the generated preview as well as the original.

Keep publication or delivery pending until those stages have evidence. If processing fails, retain a controlled failure state rather than silently releasing an incomplete result.

Review outcome: Acceptance documented; processing and retrieval approval pending. Every derived file inherits a need for an explicit access policy.

Terms you met

Quarantine

Check yourself

No timer. No penalties. Read the explanation and try again whenever you like.

  1. What do observations U1-U3 justify?

    Show the answer

    Correct answer: Keep release pending until converter limits and retrieval authorization are established. Acceptance checks support one stage. The supplied record leaves processing resources and access to the result unverified.

Try it

  • WriteWrite a release checklist for U1-U3 with three rows: acceptance evidence, processing limits, and authorized retrieval. Mark each established or pending.
References