maximum file size changed but not work. #10180

Closed
opened 2025-11-02 09:00:24 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @cloudcache on GitHub (Jan 30, 2023).

Description

app.ini config
[attachment]
ENABLED = true
TEMP_PATH = data/tmp/
ALLOWED_TYPES = .zip
STORAGE_TYPE = local
PATH = data/attachments
FILE_MAX_SIZE = 2048
MAX_FILES = 5
or
[attachment]
ENABLED = true
TEMP_PATH = data/tmp/
ALLOWED_TYPES = .zip
STORAGE_TYPE = local
PATH = data/attachments
FILE_MAX_SIZE = 2048
MAX_FILES = 5
Gitea version:
Powered by Gitea 当前版本: 1.14.1

Screenshots

error msg: 文件体积(15.56 MB)超过了最大允许体积(4 MB)
upload attachment while create new release.

Gitea Version

1.14.1

Can you reproduce the bug on the Gitea demo site?

Yes

Operating System

centos7 64bit

Browser Version

both chrome/edge

Originally created by @cloudcache on GitHub (Jan 30, 2023). ### Description app.ini config [attachment] ENABLED = true TEMP_PATH = data/tmp/ ALLOWED_TYPES = .zip STORAGE_TYPE = local PATH = data/attachments FILE_MAX_SIZE = 2048 MAX_FILES = 5 or [attachment] ENABLED = true TEMP_PATH = data/tmp/ ALLOWED_TYPES = .zip STORAGE_TYPE = local PATH = data/attachments FILE_MAX_SIZE = 2048 MAX_FILES = 5 Gitea version: Powered by Gitea 当前版本: 1.14.1 ### Screenshots error msg: 文件体积(15.56 MB)超过了最大允许体积(4 MB) upload attachment while create new release. ### Gitea Version 1.14.1 ### Can you reproduce the bug on the Gitea demo site? Yes ### Operating System centos7 64bit ### Browser Version both chrome/edge
GiteaMirror added the type/question label 2025-11-02 09:00:24 -06:00
Author
Owner

@lunny commented on GitHub (Jan 30, 2023):

You should use

[attachment]
MAX_SIZE = 4
@lunny commented on GitHub (Jan 30, 2023): You should use ```ini [attachment] MAX_SIZE = 4 ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#10180