[Feature Request] Persist the "Use formatted filename" choice for downloads #13298
Replies: 1 comment 1 reply
|
Persisting this per-user preference makes sense, and I would prefer a user-level UI setting over an instance-wide environment variable. The choice is about how a person wants downloads named, not how the server should process every user's documents. There are two reasonable storage layers:
Whichever layer is chosen, keep the default false for existing installations and provide a reset-to-default action. The download action should read the current preference at the moment it creates the request, rather than relying on a component value that can become stale when navigating between documents. I would also preserve an explicit per-download override so users can occasionally use the other naming mode without changing their default. If the download is exposed through an API or keyboard shortcut, make the override an explicit request parameter so the UI and API do not diverge. The regression tests should cover a fresh user, toggling the setting, navigating to another document, reloading, opening a second browser, and changing the filename format itself. The preference should control whether formatted names are used; it should not cache the formatted result, because the underlying document or storage configuration can change. |
Uh oh!
There was an error while loading. Please reload this page.
Description
Current state
Since #12095, the document detail view has a "Use formatted filename" option in the download dropdown. Thanks for that — it solves the naming itself nicely.
However, the choice is not remembered. It resets after every download, and even when navigating to another document and back within the same session. For anyone who regularly sends documents out, this means ticking the box every single time — and re-downloading whenever it was forgotten.
Feature request
Allow the choice to persist instead of resetting. Any of these would solve it, roughly in order of preference:
PAPERLESS_DOWNLOAD_USE_FORMATTED_FILENAME, defaulting tofalseso nothing changes for existing users.Option 1 alone would already be enough here, and it would not require a new user-facing setting at all.
Why this matters
The formatted filename comes from something the user explicitly configured —
PAPERLESS_FILENAME_FORMATor a storage path. Having to re-assert that same intent on every single download is repetitive. This also lines up with the point @shamoon raised in #11296: if a filename on disk exists because the user deliberately set it up, it makes sense to honour that by default.Related
Environment: Paperless-ngx 3.0.2, Docker
Other
No response
All reactions