mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-22 22:20:07 +08:00
enlarge max file number per user limit (#373)
### What problem does this PR solve? Issue link:#370 ### Type of change - [x] Refactoring
This commit is contained in:
parent
111501af5e
commit
c344486aa0
@ -57,7 +57,7 @@ def upload():
|
|||||||
if not e:
|
if not e:
|
||||||
return get_data_error_result(
|
return get_data_error_result(
|
||||||
retmsg="Can't find this knowledgebase!")
|
retmsg="Can't find this knowledgebase!")
|
||||||
if DocumentService.get_doc_count(kb.tenant_id) >= 128:
|
if DocumentService.get_doc_count(kb.tenant_id) >= os.environ.get('MAX_FILE_NUM_PER_USER', 8192):
|
||||||
return get_data_error_result(
|
return get_data_error_result(
|
||||||
retmsg="Exceed the maximum file number of a free user!")
|
retmsg="Exceed the maximum file number of a free user!")
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user