Skip to content

Uploading files to a web page will cause the repository instance to crash #26509

Closed
@Lingoing

Description

@Lingoing

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

11111
2222
333

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions