Feat/customizable file upload config (#818)

This commit is contained in:
Matri
2023-08-16 23:14:27 +08:00
committed by GitHub
parent b7c29ea1b6
commit 155a4733f6
13 changed files with 122 additions and 83 deletions

View File

@@ -21,10 +21,6 @@ from tasks.document_indexing_sync_task import document_indexing_sync_task
cache = TTLCache(maxsize=None, ttl=30)
FILE_SIZE_LIMIT = 15 * 1024 * 1024 # 15MB
ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm']
PREVIEW_WORDS_LIMIT = 3000
class DataSourceApi(Resource):
integrate_icon_fields = {