增加文件上传大小限制到500MB - 添加Tomcat max-http-form-post-size和max-swallow-size配置 - 增加connection-timeout到10分钟 - 更新前端提示文字

This commit is contained in:
Your Name 2026-01-14 15:44:28 +08:00
parent 240bb9b4d7
commit 2697494934
3 changed files with 11 additions and 1 deletions

View File

@ -54,6 +54,11 @@ server:
charset: UTF-8
enabled: true
force: true
# Tomcat 配置(支持大文件上传)
tomcat:
max-http-form-post-size: 524288000 # 500MB
max-swallow-size: 524288000 # 500MB
connection-timeout: 600000 # 10分钟超时
# 日志配置
logging:

View File

@ -55,6 +55,11 @@ server:
charset: UTF-8
enabled: true
force: true
# Tomcat 配置(支持大文件上传)
tomcat:
max-http-form-post-size: 524288000 # 500MB
max-swallow-size: 524288000 # 500MB
connection-timeout: 600000 # 10分钟超时
# 生产环境压缩
compression:
enabled: true

View File

@ -432,7 +432,7 @@
<span class="tip-icon">
<Icon name="document" size="sm" color="#31f08b" />
</span>
<span>支持格式:Excel (.xlsx/.xls)、Word (.docx/.doc)、PDF、ZIP,单文件最大50MB,最多上传5个文件</span>
<span>支持格式:Excel (.xlsx/.xls)、Word (.docx/.doc)、PDF、ZIP,单文件最大500MB,最多上传5个文件</span>
</div>
<div v-if="uploadProgress > 0 && uploadProgress < 100" class="upload-progress">
<a-progress :percent="uploadProgress" :show-info="true" />