Package upload to Release page exceeding limit #15082

Open
opened 2025-11-02 11:29:45 -06:00 by GiteaMirror · 6 comments
Owner

Originally created by @MaxWaldorf on GitHub (Nov 1, 2025).

Description

SInce 1.25.0

I'm having automation failures to upload packages to release page and while checking manually , I see the following warning:

Dropzone upload error: File size (186.29 MB) exceeds the maximum size of (150 MB).

I don't see any parameter to set that value...

Gitea Version

1.25.0

Can you reproduce the bug on the Gitea demo site?

Yes

Log Gist

No response

Screenshots

No response

Git Version

docker image

Operating System

docker image

How are you running Gitea?

official docker image

Database

PostgreSQL

Originally created by @MaxWaldorf on GitHub (Nov 1, 2025). ### Description SInce 1.25.0 I'm having automation failures to upload packages to release page and while checking manually , I see the following warning: `Dropzone upload error: File size (186.29 MB) exceeds the maximum size of (150 MB).` I don't see any parameter to set that value... ### Gitea Version 1.25.0 ### Can you reproduce the bug on the Gitea demo site? Yes ### Log Gist _No response_ ### Screenshots _No response_ ### Git Version docker image ### Operating System docker image ### How are you running Gitea? official docker image ### Database PostgreSQL
GiteaMirror added the issue/not-a-bug label 2025-11-02 11:29:45 -06:00
Author
Owner

@TheFox0x7 commented on GitHub (Nov 1, 2025):

Can you share your config (with redacted secrets) and steps to reproduce?

@TheFox0x7 commented on GitHub (Nov 1, 2025): Can you share your config (with redacted secrets) and steps to reproduce?
Author
Owner

@MaxWaldorf commented on GitHub (Nov 1, 2025):

To reproduce:

  1. Create a release
  2. Try to upload a package above 150M
  3. see error

Config:

APP_NAME = REDACTED
RUN_MODE = prod
RUN_USER = git
WORK_PATH = /data/gitea

[repository]
ROOT = /data/git/repositories
MAX_CREATION_LIMIT = 0
DEFAULT_BRANCH = main
DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true
DEFAULT_PRIVATE = true
ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT = false

[repository.local]
LOCAL_COPY_PATH = /data/gitea/tmp/local-repo

[repository.upload]
TEMP_PATH = /data/gitea/uploads
FILE_MAX_SIZE = 2048
MAX_FILES = 10

[repository.pull-request]
DEFAULT_MERGE_STYLE = squash

[server]
APP_DATA_PATH = /data/gitea
DOMAIN = REDACTED
SSH_DOMAIN = REDACTED
HTTP_PORT = 3000
ROOT_URL = REDACTED
DISABLE_SSH = true
SSH_PORT = 22
SSH_LISTEN_PORT = 22
LFS_START_SERVER = true
# LFS_CONTENT_PATH  = /data/git/lfs
LFS_JWT_SECRET = REDACTED
OFFLINE_MODE = false
# LFS_HTTP_AUTH_EXPIRY = 120m
#LFS_MAX_BATCH_SIZE = 10
ENABLE_GZIP = false
PROTOCOL = http
LANDING_PAGE = login
PER_WRITE_TIMEOUT = 360s
SSH_PER_WRITE_TIMEOUT = 360s

[ui]
SHOW_USER_EMAIL = false
USE_SERVICE_WORKER = true

[ui.meta]
AUTHOR = REDACTED
DESCRIPTION = REDACTED
KEYWORDS = REDACTED

[admin]
EXTERNAL_USER_DISABLE_FEATURES = deletion, manage_mfa, manage_credentials
DISABLE_REGULAR_ORG_CREATION = true

[lfs]
#STORAGE_TYPE = objstor
PATH = /data/git/lfs

[database]
PATH = /data/gitea/gitea.db
DB_TYPE = postgres
HOST = localhost:5432
NAME = REDACTED
USER = REDACTED
PASSWD = REDACTED
LOG_SQL = false
SCHEMA = 
SSL_MODE = disable
CHARSET = utf8

[indexer]
REPO_INDEXER_ENABLED = true
REPO_INDEXER_INCLUDE = **.run,**.scf,**.vcf,**.txtpb,**.veh,**.h,**.H,**.cpp,**.CPP,**.hlsl,**.txt,**.xml,**.XML,**.dat,**.DAT,**.ini,**.lst,**.aii,**.tri,**.b,**.pri,**.ia,**.id,**.irc,**.db,**.html
MAX_FILE_SIZE = 10485760

[git]
#MAX_GIT_DIFF_FILES = 25
#MAX_GIT_DIFF_LINES = 500
GC_ARGS = --aggressive --prune

[git.timeout]
DEFAULT = 600
PULL = 600
GC = 600

[session]
PROVIDER_CONFIG = /data/sessions
PROVIDER = db
COOKIE_SECURE = true
DOMAIN = REDACTED
COOKIE_NAME = REDACTED
SESSION_LIFE_TIME = 432000
#GC_INTERVAL_TIME = 86400
#SAME_SITE = none

[picture]
AVATAR_UPLOAD_PATH = /data/gitea/avatars
REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars
DISABLE_GRAVATAR = false
ENABLE_FEDERATED_AVATAR = false

[attachment]
#STORAGE_TYPE = objstor
# PATH = /data/gitea/attachments
ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.rar,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip
MAX_SIZE = 150

[log]
MODE = console
LEVEL = warn
ROOT_PATH = /data/gitea/log

[security]
INSTALL_LOCK = true
SECRET_KEY = REDACTED
LOGIN_REMEMBER_DAYS = 30
COOKIE_USERNAME = gitea_bms
REVERSE_PROXY_LIMIT = 1
REVERSE_PROXY_TRUSTED_PROXIES = 10.42.0.0/16,127.0.0.0/8,::1/128:
INTERNAL_TOKEN = REDACTED
PASSWORD_HASH_ALGO = pbkdf2

[service]
DISABLE_REGISTRATION = false
REQUIRE_SIGNIN_VIEW = true
REGISTER_EMAIL_CONFIRM = false
ENABLE_NOTIFY_MAIL = true
AUTO_WATCH_NEW_REPOS = false
ALLOW_ONLY_EXTERNAL_REGISTRATION = true
ENABLE_CAPTCHA = false
DEFAULT_KEEP_EMAIL_PRIVATE = true
DEFAULT_ALLOW_CREATE_ORGANIZATION = false
DEFAULT_ENABLE_TIMETRACKING = true
NO_REPLY_ADDRESS = benchmarksims.org
DEFAULT_ORG_VISIBILITY = private
DEFAULT_USER_VISIBILITY = private

[mailer]
ENABLED = true
SMTP_ADDR = REDACTED
SMTP_PORT = 587
FROM = REDACTED
USER    = REDACTED
PASSWD  = REDACTED

[oauth2_client]
REGISTER_EMAIL_CONFIRM = false
ENABLE_AUTO_REGISTRATION = true
USERNAME = preferred_username
OPENID_CONNECT_SCOPES = profile email offline_access
ACCOUNT_LINKING = login

[openid]
ENABLE_OPENID_SIGNIN = false
ENABLE_OPENID_SIGNUP = false

[cron]
ENABLED = true

[cron.git_gc_repos]
ENABLED = true
ARGS = --prune
TIMEOUT = 600s

[cron.repo_health_check]
TIMEOUT = 600s

[cron.delete_old_actions]
ENABLED = true

[cron.delete_old_system_notices]
ENABLED = true

[oauth2]
JWT_SECRET = REDACTED

[actions]
ENABLED = true

[cron.delete_old_actions]
ENABLED = true

[cron.gc_lfs]
ENABLED = true
@MaxWaldorf commented on GitHub (Nov 1, 2025): To reproduce: 1) Create a release 2) Try to upload a package above 150M 3) see error Config: ``` APP_NAME = REDACTED RUN_MODE = prod RUN_USER = git WORK_PATH = /data/gitea [repository] ROOT = /data/git/repositories MAX_CREATION_LIMIT = 0 DEFAULT_BRANCH = main DISABLE_DOWNLOAD_SOURCE_ARCHIVES = true DEFAULT_PRIVATE = true ALLOW_FORK_WITHOUT_MAXIMUM_LIMIT = false [repository.local] LOCAL_COPY_PATH = /data/gitea/tmp/local-repo [repository.upload] TEMP_PATH = /data/gitea/uploads FILE_MAX_SIZE = 2048 MAX_FILES = 10 [repository.pull-request] DEFAULT_MERGE_STYLE = squash [server] APP_DATA_PATH = /data/gitea DOMAIN = REDACTED SSH_DOMAIN = REDACTED HTTP_PORT = 3000 ROOT_URL = REDACTED DISABLE_SSH = true SSH_PORT = 22 SSH_LISTEN_PORT = 22 LFS_START_SERVER = true # LFS_CONTENT_PATH = /data/git/lfs LFS_JWT_SECRET = REDACTED OFFLINE_MODE = false # LFS_HTTP_AUTH_EXPIRY = 120m #LFS_MAX_BATCH_SIZE = 10 ENABLE_GZIP = false PROTOCOL = http LANDING_PAGE = login PER_WRITE_TIMEOUT = 360s SSH_PER_WRITE_TIMEOUT = 360s [ui] SHOW_USER_EMAIL = false USE_SERVICE_WORKER = true [ui.meta] AUTHOR = REDACTED DESCRIPTION = REDACTED KEYWORDS = REDACTED [admin] EXTERNAL_USER_DISABLE_FEATURES = deletion, manage_mfa, manage_credentials DISABLE_REGULAR_ORG_CREATION = true [lfs] #STORAGE_TYPE = objstor PATH = /data/git/lfs [database] PATH = /data/gitea/gitea.db DB_TYPE = postgres HOST = localhost:5432 NAME = REDACTED USER = REDACTED PASSWD = REDACTED LOG_SQL = false SCHEMA = SSL_MODE = disable CHARSET = utf8 [indexer] REPO_INDEXER_ENABLED = true REPO_INDEXER_INCLUDE = **.run,**.scf,**.vcf,**.txtpb,**.veh,**.h,**.H,**.cpp,**.CPP,**.hlsl,**.txt,**.xml,**.XML,**.dat,**.DAT,**.ini,**.lst,**.aii,**.tri,**.b,**.pri,**.ia,**.id,**.irc,**.db,**.html MAX_FILE_SIZE = 10485760 [git] #MAX_GIT_DIFF_FILES = 25 #MAX_GIT_DIFF_LINES = 500 GC_ARGS = --aggressive --prune [git.timeout] DEFAULT = 600 PULL = 600 GC = 600 [session] PROVIDER_CONFIG = /data/sessions PROVIDER = db COOKIE_SECURE = true DOMAIN = REDACTED COOKIE_NAME = REDACTED SESSION_LIFE_TIME = 432000 #GC_INTERVAL_TIME = 86400 #SAME_SITE = none [picture] AVATAR_UPLOAD_PATH = /data/gitea/avatars REPOSITORY_AVATAR_UPLOAD_PATH = /data/gitea/repo-avatars DISABLE_GRAVATAR = false ENABLE_FEDERATED_AVATAR = false [attachment] #STORAGE_TYPE = objstor # PATH = /data/gitea/attachments ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.rar,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip MAX_SIZE = 150 [log] MODE = console LEVEL = warn ROOT_PATH = /data/gitea/log [security] INSTALL_LOCK = true SECRET_KEY = REDACTED LOGIN_REMEMBER_DAYS = 30 COOKIE_USERNAME = gitea_bms REVERSE_PROXY_LIMIT = 1 REVERSE_PROXY_TRUSTED_PROXIES = 10.42.0.0/16,127.0.0.0/8,::1/128: INTERNAL_TOKEN = REDACTED PASSWORD_HASH_ALGO = pbkdf2 [service] DISABLE_REGISTRATION = false REQUIRE_SIGNIN_VIEW = true REGISTER_EMAIL_CONFIRM = false ENABLE_NOTIFY_MAIL = true AUTO_WATCH_NEW_REPOS = false ALLOW_ONLY_EXTERNAL_REGISTRATION = true ENABLE_CAPTCHA = false DEFAULT_KEEP_EMAIL_PRIVATE = true DEFAULT_ALLOW_CREATE_ORGANIZATION = false DEFAULT_ENABLE_TIMETRACKING = true NO_REPLY_ADDRESS = benchmarksims.org DEFAULT_ORG_VISIBILITY = private DEFAULT_USER_VISIBILITY = private [mailer] ENABLED = true SMTP_ADDR = REDACTED SMTP_PORT = 587 FROM = REDACTED USER = REDACTED PASSWD = REDACTED [oauth2_client] REGISTER_EMAIL_CONFIRM = false ENABLE_AUTO_REGISTRATION = true USERNAME = preferred_username OPENID_CONNECT_SCOPES = profile email offline_access ACCOUNT_LINKING = login [openid] ENABLE_OPENID_SIGNIN = false ENABLE_OPENID_SIGNUP = false [cron] ENABLED = true [cron.git_gc_repos] ENABLED = true ARGS = --prune TIMEOUT = 600s [cron.repo_health_check] TIMEOUT = 600s [cron.delete_old_actions] ENABLED = true [cron.delete_old_system_notices] ENABLED = true [oauth2] JWT_SECRET = REDACTED [actions] ENABLED = true [cron.delete_old_actions] ENABLED = true [cron.gc_lfs] ENABLED = true ```
Author
Owner

@dangjinghao commented on GitHub (Nov 1, 2025):

Check that: attachment.MAX_SIZE in

[attachment]
#STORAGE_TYPE = objstor
# PATH = /data/gitea/attachments
ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.rar,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip
MAX_SIZE = 150

See: https://docs.gitea.com/administration/config-cheat-sheet#repository---release-repositoryrelease

For settings related to file attachments on releases, see the attachment section.

@dangjinghao commented on GitHub (Nov 1, 2025): Check that: `attachment.MAX_SIZE` in ```ini [attachment] #STORAGE_TYPE = objstor # PATH = /data/gitea/attachments ALLOWED_TYPES = .csv,.docx,.fodg,.fodp,.fods,.fodt,.gif,.gz,.jpeg,.jpg,.log,.md,.mov,.mp4,.odf,.odg,.odp,.ods,.odt,.pdf,.png,.pptx,.rar,.svg,.tgz,.txt,.webm,.xls,.xlsx,.zip MAX_SIZE = 150 ``` See: <https://docs.gitea.com/administration/config-cheat-sheet#repository---release-repositoryrelease> > For settings related to file attachments on releases, see the attachment section.
Author
Owner

@MaxWaldorf commented on GitHub (Nov 1, 2025):

Indeed...
It seems in 1.24 this was not a limitation that was set to release uploads

@MaxWaldorf commented on GitHub (Nov 1, 2025): Indeed... It seems in 1.24 this was not a limitation that was set to release uploads
Author
Owner

@wxiaoguang commented on GitHub (Nov 1, 2025):

It is a changed behavior in "fix attachment file size limit in server backend #35519"

I also have a similar question: https://github.com/go-gitea/gitea/pull/35519#pullrequestreview-3259881208

@a1012112796 do you have some ideas?

@wxiaoguang commented on GitHub (Nov 1, 2025): It is a changed behavior in "fix attachment file size limit in server backend #35519" I also have a similar question: https://github.com/go-gitea/gitea/pull/35519#pullrequestreview-3259881208 @a1012112796 do you have some ideas?
Author
Owner

@lunny commented on GitHub (Nov 2, 2025):

This should be a break change not a bug.

@lunny commented on GitHub (Nov 2, 2025): This should be a break change not a bug.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#15082