mirror of
https://github.com/paperless-ngx/paperless-ngx.git
synced 2025-12-10 08:37:19 +01:00
fixes #78
This commit is contained in:
parent
e3ce573fbb
commit
4548cf08c7
2 changed files with 26 additions and 2 deletions
|
|
@ -51,7 +51,11 @@ def get_default_file_extension(mime_type):
|
|||
if mime_type in supported_mime_types:
|
||||
return supported_mime_types[mime_type]
|
||||
|
||||
return None
|
||||
ext = mimetypes.guess_extension(mime_type)
|
||||
if ext:
|
||||
return ext
|
||||
else:
|
||||
return ""
|
||||
|
||||
|
||||
def is_file_ext_supported(ext):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue