File Upload Limit on macOS cannot be changed #1908

Closed
opened 2025-11-02 04:17:32 -06:00 by GiteaMirror · 7 comments
Owner

Originally created by @T100D on GitHub (Jun 9, 2018).

  • Gitea version (or commit ref): 1.4.2 built with: bindata, sqlite
  • Git version: git version 2.15.1 (Apple Git-101)
  • Operating system: macOS 10.13.5 Sierra
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • [ X ] SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • [ X ] No
    • Not relevant
  • Log gist:
    Nothing in de logs, changed levels to Trace

Description

When uploading a file the 3MB limit keeps up even when the settings are changed.

from app.ini:

[attachment]
ENABLE = true
PATH = data/attachments (tried an absolute path even so)
ALLOWED_TYPES = /
MAX_SIZE = 10
MAX_FILES = 5

Screenshots

https://user-images.githubusercontent.com/12442261/36669190-546102cc-1af4-11e8-943a-71011e001527.jpg

Originally created by @T100D on GitHub (Jun 9, 2018). - Gitea version (or commit ref): 1.4.2 built with: bindata, sqlite - Git version: git version 2.15.1 (Apple Git-101) - Operating system: macOS 10.13.5 Sierra - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [ X ] SQLite - Can you reproduce the bug at https://try.gitea.io: - [ ] Yes (provide example URL) - [ X ] No - [ ] Not relevant - Log gist: Nothing in de logs, changed levels to Trace ## Description When uploading a file the 3MB limit keeps up even when the settings are changed. ## from app.ini: [attachment] ENABLE = true PATH = data/attachments (tried an absolute path even so) ALLOWED_TYPES = */* MAX_SIZE = 10 MAX_FILES = 5 ## Screenshots https://user-images.githubusercontent.com/12442261/36669190-546102cc-1af4-11e8-943a-71011e001527.jpg
Author
Owner

@T100D commented on GitHub (Jun 9, 2018):

The installation is done from binary, this could be the problem. Not sure.

@T100D commented on GitHub (Jun 9, 2018): The installation is done from binary, this could be the problem. Not sure.
Author
Owner

@lunny commented on GitHub (Jun 10, 2018):

After you change the app.ini, you have to restart the gitea

@lunny commented on GitHub (Jun 10, 2018): After you change the app.ini, you have to restart the gitea
Author
Owner

@T100D commented on GitHub (Jun 10, 2018):

I did restart it, several times, but no luck.
The config for attachments is not shown in the web interface either.

@T100D commented on GitHub (Jun 10, 2018): I did restart it, several times, but no luck. The config for attachments is not shown in the web interface either.
Author
Owner

@T100D commented on GitHub (Jun 10, 2018):

After some testing, the attachment limit is working for the "releases" page.
But it is not working for the "Code" page. < different setting?

@T100D commented on GitHub (Jun 10, 2018): After some testing, the attachment limit is working for the "releases" page. But it is not working for the "Code" page. < different setting?
Author
Owner

@ghost commented on GitHub (Jun 10, 2018):

@T100D You may need the following settings

[repository.upload]
; Max size of each file in megabytes. Defaults to 3MB
FILE_MAX_SIZE = 3
@ghost commented on GitHub (Jun 10, 2018): @T100D You may need the following settings ``` [repository.upload] ; Max size of each file in megabytes. Defaults to 3MB FILE_MAX_SIZE = 3 ```
Author
Owner

@T100D commented on GitHub (Jun 10, 2018):

@yasuokav That did the trick for me, could not find that in the default help available.

@T100D commented on GitHub (Jun 10, 2018): @yasuokav That did the trick for me, could not find that in the default help available.
Author
Owner

@ghost commented on GitHub (Jun 10, 2018):

@T100D https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample

@ghost commented on GitHub (Jun 10, 2018): @T100D https://github.com/go-gitea/gitea/blob/master/custom/conf/app.ini.sample
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#1908