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

上传文件时console提示上传文件太大错误 #48

Open
aplot249 opened this issue Nov 24, 2020 · 1 comment
Open

上传文件时console提示上传文件太大错误 #48

aplot249 opened this issue Nov 24, 2020 · 1 comment

Comments

@aplot249
Copy link

上传文件时console提示上传文件太大错误
Failed to parse multipart servlet request; nested exception is java.lang.IllegalStateException: The multi-part request contained parameter data (excluding uploaded files) that exceeded the limit for maxPostSize set on the associated connector

如何解决

@KOHGYLW
Copy link
Owner

KOHGYLW commented Jan 20, 2021

kiftd在默认情况下并无上传文件大小的限制,因此理论上可以上传任意体积的文件。您的问题可能是由于两个原因引起:1,运行kiftd的操作系统本身使用的文件系统不支持大文件,在此情况下kiftd也将无法存储超限的文件。如果您将kiftd运行于较旧的操作系统上(例如Windows 2000),则该原因的可能性较大。此时,可以将kiftd的文件系统文件夹修改为一个支持更大文件的文件系统分区,例如使用NTFS文件系统的分区;2,如果您使用了反向代理服务器,则应检查此反向代理服务器是否具有最大请求体长度限制。例如Nginx在默认情况下会限制最大的请求体长度从而导致此问题的发生,这也是导致此问题最为常见的原因。这种情况下,您可以修改相关设置并令反向代理服务器允许接收更大的请求体长度。

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

2 participants