mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-18 08:16:07 +00:00
add office preview size limit
default limit is 2MB
This commit is contained in:
@@ -179,6 +179,7 @@ ACCOUNT_ACTIVATION_DAYS = 7
|
||||
|
||||
# File preview
|
||||
FILE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024
|
||||
OFFICE_PREVIEW_MAX_SIZE = 2 * 1024 * 1024
|
||||
USE_PDFJS = True
|
||||
FILE_ENCODING_LIST = ['auto', 'utf-8', 'gbk', 'ISO-8859-1', 'ISO-8859-5']
|
||||
FILE_ENCODING_TRY_LIST = ['utf-8', 'gbk']
|
||||
|
Reference in New Issue
Block a user