1
0
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:
lins05
2013-05-30 12:13:33 +08:00
parent c561ca8151
commit 1f248f429e
3 changed files with 19 additions and 5 deletions

View File

@@ -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']