attachment settings not respected #9910

Closed
opened 2025-11-02 08:52:54 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @davama on GitHub (Nov 30, 2022).

Description

I am trying to use the UI to upload files to a repo. Saw this ticket https://github.com/go-gitea/gitea/issues/3586 but still with no success.

my conf/app.ini

[attachment]
ENABLED = true
PATH = /data/gitea/attachments
MAX_SIZE = 4

# not sure if if this one is relevant; confused about its use; but here it is
[repository.upload]
TEMP_PATH = /data/gitea/uploads
ALLOWED_TYPES = '*/*'
FILE_MAX_SIZE = 3

Any input is much appreciated!

Thank you,
Dave

Gitea Version

1.17.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

https://pastebin.com/raw/pNGcRXZM

Screenshots

Imgur

Git Version

2.36.2

Operating System

Alpine Linux 3.16 (container) , Rocky Linux release 8.6 (host)

How are you running Gitea?

Using docker to run gitea.

From docker-compose.yml

    image: gitea/gitea

Not installing any extra packages.

Database

PostgreSQL

Originally created by @davama on GitHub (Nov 30, 2022). ### Description I am trying to use the UI to upload files to a repo. Saw this ticket https://github.com/go-gitea/gitea/issues/3586 but still with no success. my `conf/app.ini` ``` [attachment] ENABLED = true PATH = /data/gitea/attachments MAX_SIZE = 4 # not sure if if this one is relevant; confused about its use; but here it is [repository.upload] TEMP_PATH = /data/gitea/uploads ALLOWED_TYPES = '*/*' FILE_MAX_SIZE = 3 ``` Any input is much appreciated! Thank you, Dave ### Gitea Version 1.17.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist https://pastebin.com/raw/pNGcRXZM ### Screenshots ![Imgur](https://i.imgur.com/QijL1XV.png) ### Git Version 2.36.2 ### Operating System Alpine Linux 3.16 (container) , Rocky Linux release 8.6 (host) ### How are you running Gitea? Using docker to run gitea. From `docker-compose.yml` ``` image: gitea/gitea ``` Not installing any extra packages. ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 08:52:54 -06:00
Author
Owner

@silverwind commented on GitHub (Nov 30, 2022):

The error message shows its coming from nginx, not gitea. Increase client_max_body_size there.

@silverwind commented on GitHub (Nov 30, 2022): The error message shows its coming from nginx, not gitea. Increase `client_max_body_size` there.
Author
Owner

@davama commented on GitHub (Nov 30, 2022):

That was it!
thank you

@davama commented on GitHub (Nov 30, 2022): That was it! thank you
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9910