An uploaded file may be renamed, scanned, converted, indexed, previewed, and downloaded by another user. Each stage interprets the file or changes where it can be accessed. A successful upload check covers only part of that lifecycle.
For business applications accepting invoices, resumes, or customer attachments, the assessment scope needs to include the processors and delivery paths that follow the initial request.
A filename is not a file-type guarantee
OWASP's file-upload guidance recommends layered validation, including allowed types, size limits, storage controls, and appropriate scanning or content processing. It notes that a client-supplied content type is not reliable evidence of the file's contents. The OWASP guidance explains these controls.
For an invoice portal accepting PDFs and images, test format detection, generated storage names, and separation of pending files from downloads. A file can pass one check and fail another, so keep the results for each stage.
Processing workers have their own authority
A conversion worker may parse complex formats and write preview files. Record its network access, filesystem permissions, credentials, and resource limits. The worker does not necessarily need the same database or administrative access as the main application.
Include derived files in the access model. A protected original with a publicly reachable thumbnail or extracted-text file can still disclose information. The authorization relationship has to follow every output associated with the upload.
Test state transitions with harmless files
Use synthetic files to exercise accepted types, mismatched extensions, oversized inputs, and ordinary malformed files within an agreed test scope. Verify the state shown while scanning or conversion is pending. The application should behave according to its documented policy when a processing service is unavailable.
Test access before processing completes and after a file is rejected. Use two customer accounts to check the original, preview, metadata, and download endpoint. Record whether rejected files remain accessible through an earlier link or a derived artifact.
Follow deletion through derived storage
When a user deletes an attachment, determine what happens to previews, extracted text, search entries, and retained recovery copies. The product's retention policy can allow some copies to remain, but those exceptions need clear access and lifecycle rules.
Map the upload path and record the result at each transition: acceptance, processing, preview, download, rejection, and deletion. Repeat the relevant cases when adding a file format or preview service. Those changes can introduce another parser or a new copy of customer data.
Sources
OWASP: Input Validation. The invoice portal and processing states are illustrative.