浏览代码

enlarge max file number per user limit (#373)

### What problem does this PR solve?

Issue link:#370

### Type of change

- [x] Refactoring
tags/v0.2.0
KevinHuSh 1年前
父节点
当前提交
c344486aa0
没有帐户链接到提交者的电子邮件
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      api/apps/document_app.py

+ 1
- 1
api/apps/document_app.py 查看文件

@@ -57,7 +57,7 @@ def upload():
if not e:
return get_data_error_result(
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(
retmsg="Exceed the maximum file number of a free user!")

正在加载...
取消
保存