-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
No way to upload files with "text/plain; charset=utf-8" filetype #7882
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
There are two allowed_types, you may changed the wrong section. But of course, it's still a bug. [repository.upload]
ALLOWED_TYPES = "application/zip|application/gzip|application/x-gzip|application/x-gtar|application/x-tgz|application/x-compressed-tar|text/plain"
[attachment]
ALLOWED_TYPES = "application/zip|application/gzip|application/x-gzip|application/x-gtar|application/x-tgz|application/x-compressed-tar|text/plain"
|
@lunny I am speaking specifically about the |
For release, you should change repository.upload section not attachment |
@lunny [repository.upload]
;Whether repository file uploads are enabled. Defaults to `true`
ENABLED = true
;Path for uploads. Defaults to `data/tmp/uploads` (tmp gets deleted on gitea restart)
TEMP_PATH = data/tmp/uploads
; One or more allowed types, e.g. image/jpeg|image/png. Nothing means any file type
ALLOWED_TYPES = "application/zip|application/gzip|application/x-gzip|application/x-gtar|application/x-tgz|application/x-compressed-tar|text/plain" and I still cannot upload [attachment]
; Whether attachments are enabled. Defaults to `true`
ENABLED = true
; Path for attachments. Defaults to `data/attachments`
PATH = data/attachments
; One or more allowed types, e.g. image/jpeg|image/png
ALLOWED_TYPES = */* then I can upload |
[x]
):Description
I have
In my
/etc/gitea/app.ini
, but I still cannot upload checksums.txt at https://git.dtluna.net/dtluna/fallhack/releases/edit/v1.0.1...
Screenshots
The text was updated successfully, but these errors were encountered: