mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-12 01:26:47 +01:00
mime type handling
This commit is contained in:
parent
bd45a804a7
commit
41650f20f4
19 changed files with 163 additions and 146 deletions
|
|
@ -91,9 +91,9 @@ def generate_filename(document):
|
|||
|
||||
# Always append the primary key to guarantee uniqueness of filename
|
||||
if len(path) > 0:
|
||||
filename = "%s-%07i.%s" % (path, document.pk, document.file_type)
|
||||
filename = "%s-%07i%s" % (path, document.pk, document.file_type)
|
||||
else:
|
||||
filename = "%07i.%s" % (document.pk, document.file_type)
|
||||
filename = "%07i%s" % (document.pk, document.file_type)
|
||||
|
||||
# Append .gpg for encrypted files
|
||||
if document.storage_type == document.STORAGE_TYPE_GPG:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue