mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-21 03:18:23 +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)
|
||||
if filetype:
|
||||
# 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 \
|
||||
else ('Unknown', fileExt)
|
||||
else:
|
||||
|
Reference in New Issue
Block a user