Open BastianPoe opened 6 years ago
Hi! This request is another common one and I have a work-in-progress PR here that will eventually make storing PDFs unencrypted possible. As for the uniform naming thing, that's a good idea, but it requires more work than it sounds like...
The problem is how files are being stored at present. Rather than using Django's FileField
(which is what I should have done), we're not using a field at all. Instead, the original file is always just the primary key + .pdf
. It makes for a quick & easy fetching of the data, but it means we can't change the file names.
I'm all for fixing this, but it's a problem that needs to include a migration and lots of error-checking so that we don't accidentally hose other people's systems, so I've been putting it off.
Hi,
I'm currently working around this issue by running a cron job, that
I suppose you could also run this as a post-consume hook instead of a cron job.
The idea of having symlinks actually sounds like a good idea. I will have to check, if this works for my use case.
I run paperless in a docker on a Synology NAS. The "universal search" allows me to search through the whole system and of course I would like search through all my documents. #254 allows to store unencrypted documents (good!) and now I would like to have the filename reflect, what we know about the document.
I will give this a try and report back.
Hi!
Use case: I have paperless running on my Synology NAS and want to be able to find documents stored in paperless via the universal search of the system.
This requires them to be stored unencrypted (see https://github.com/danielquinn/paperless/pull/254) and they ideally also have a “speaking” filename (such as “correspondent - date - tags”).
Any thoughts about this?
Bastian