Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

文件上传功能,限制文件大小编码不规范 #189

Open
AA99777 opened this issue Mar 16, 2021 · 0 comments
Open

文件上传功能,限制文件大小编码不规范 #189

AA99777 opened this issue Mar 16, 2021 · 0 comments

Comments

@AA99777
Copy link

AA99777 commented Mar 16, 2021

请详细描述您对本项目的任何问题,我们会在第一时间查阅和解决。
spring 中有配置限制文件大小上传的设置,设置如下
// 设置单个文件大小
spring.servlet.multipart.max-file-size= 10MB
// 设置单次请求文件的总大小
spring.servlet.multipart.max-request-size= 50MB

而lin-cms-boot 中,理解不到位,只使用了max-file-size参数,并错用为总文件大小限制,同时又另外设置single-limit参数去判断单个文件。
建议,统一规范,在io/github/talelin/latticy/extensions/file/config.properties中使用配置max-request-size和max-file-size参数即可,去除single-limit部分涉及到的多余的业务代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant