-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Uploading files to a web page will cause the repository instance to crash #26509
Comments
File upload size can be set in the configuration file, the default is 3MB |
Which is the configuration item? |
|
Thank you very much! |
Maybe we need a check for |
Let me modify the Bug description |
how to reproduce it? I tried it in my local server and nothing happens |
Try it with a file of about 300MB |
I try a file with 200MB , nothing happens . please contact me in qq group 328432459 |
Yes. Go through |
So, if you add an issue`s attachment - it will just show size cap error, |
Yes |
Reproduce Steps
ScreenshotLogs
|
Backport #26517 by @wxiaoguang Close #26509 Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Description
Click Submit changes when the file is over 3MB, will corrupt the repository instance, want to fix this Bug.
This Bug only occurs when the repository is empty, and does not occur if there are any files in the repository such as "README.MD"
Gitea Version
v1.20.0、v1.20.2
Can you reproduce the bug on the Gitea demo site?
Yes
Log Gist
No response
Screenshots
Git Version
git version 2.37.1.windows.1
Operating System
Ubuntu18.04LTS
How are you running Gitea?
Binary file
http://ip:port
Database
SQLite
The text was updated successfully, but these errors were encountered: