mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 19:37:28 +00:00
no PDF view when no DOCUMENT_CONVERTOR_ROOT
This commit is contained in:
2
utils.py
2
utils.py
@@ -270,7 +270,7 @@ def valid_previewed_file(filename):
|
|||||||
filetype = FILEEXT_TYPE_MAP.get(fileExt)
|
filetype = FILEEXT_TYPE_MAP.get(fileExt)
|
||||||
if filetype:
|
if filetype:
|
||||||
# Check whether this kind of file can be previewd.
|
# Check whether this kind of file can be previewd.
|
||||||
if filetype == 'Document':
|
if filetype == 'Document' or filetype == 'PDF':
|
||||||
return (filetype, fileExt) if DOCUMENT_CONVERTOR_ROOT \
|
return (filetype, fileExt) if DOCUMENT_CONVERTOR_ROOT \
|
||||||
else ('Unknown', fileExt)
|
else ('Unknown', fileExt)
|
||||||
else:
|
else:
|
||||||
|
Reference in New Issue
Block a user