Proxy Downloads and Content-Disposition Filenames
A suggested download filename is useful metadata, but it should not control an arbitrary filesystem destination. Public documents with identical names can also contain different content. When downloading approved material through Go2Proxy data collection, preserve the source suggestion separately from the stored object identity. The application owns where the file is written, how names are normalized and which evidence links the object back to the requested document.

Separate three naming decisions
Record the requested resource, any source-suggested filename and the application's storage identifier as different fields. They can agree without serving the same purpose.
A convenient display name should not become the only deduplication or version key. The source can reuse it for a revised document or different regional version. Preserve the representation context needed to distinguish those cases before a later export flattens them into one folder.
Parse the suggestion deliberately
Use a suitable implementation for the supported Content-Disposition syntax, including the source's filename representation where applicable. Do not split arbitrary header text on the first punctuation character and assume the remainder is a usable local name.
The scraped-data validation guide provides the broader document acceptance sequence. A plausible filename does not establish the response type, completeness, expected document identity or permission to retain the downloaded content.
Keep paths inside the intended destination
Treat the received filename as untrusted input. Use an application-controlled storage location and a defined filename policy that cannot write outside the intended directory or overwrite unrelated objects.
Keep normalized display text distinct from the retained source suggestion. Reject or replace unsupported local naming forms through an explicit rule, and record that transformation when it matters to a reviewer. Avoid presenting a sanitized filename as an exact quotation of the source field.
Test conflicting and unusual names
Create owned fixtures returning the same suggested name for two different documents, a name containing unsupported path-like input and a multilingual filename. Verify that storage remains contained and that both legitimate document identities survive.
The test should also cover an absent filename suggestion. A source that omits it still needs an application-controlled storage identity. The workflow must not rely on the suggestion to decide whether the download can be accepted at all.
Verify the document before release
After storage, confirm the expected content type, document marker and relevant integrity checks. Keep a reference connecting the stored object, original URL and observation context.
For exports, resolve filename collisions without silently dropping or replacing accepted records. The delivered inventory should explain which document each file represents. A folder containing the expected number of filenames is not enough if several distinct source documents were merged during naming.
Frequently asked questions
Should a suggested filename become a direct local path?
No. Keep the storage destination under application control and validate the source text through a defined filename policy.
Does an identical filename prove identical documents?
No. Different resources or revisions can share a name. Preserve document identity and representation evidence separately.
Can a missing filename make the transfer invalid?
Not by itself. The application can assign a storage identity. Acceptance depends on the source contract and required document checks, not the presence of a convenient name.
Before the next run
Keep containment, collision and multilingual-name fixtures with the export workflow so naming changes cannot silently alter the delivered document set.



