KevinHuSh
commited on
Commit
·
d5f7f73
1
Parent(s):
468a94a
enlarge max file number per user limit (#373)
Browse files### What problem does this PR solve?
Issue link:#370
### Type of change
- [x] Refactoring
- api/apps/document_app.py +1 -1
api/apps/document_app.py
CHANGED
@@ -57,7 +57,7 @@ def upload():
|
|
57 |
if not e:
|
58 |
return get_data_error_result(
|
59 |
retmsg="Can't find this knowledgebase!")
|
60 |
-
if DocumentService.get_doc_count(kb.tenant_id) >=
|
61 |
return get_data_error_result(
|
62 |
retmsg="Exceed the maximum file number of a free user!")
|
63 |
|
|
|
57 |
if not e:
|
58 |
return get_data_error_result(
|
59 |
retmsg="Can't find this knowledgebase!")
|
60 |
+
if DocumentService.get_doc_count(kb.tenant_id) >= os.environ.get('MAX_FILE_NUM_PER_USER', 8192):
|
61 |
return get_data_error_result(
|
62 |
retmsg="Exceed the maximum file number of a free user!")
|
63 |
|