Closed
Description
- Gitea version (or commit ref): 1.6.3, 1.7.0, 1.7.1
- Git version: 2.20.1
- Operating system: Windows 10 x64
- Database (use
[x]
):- PostgreSQL
- MySQL
- MSSQL
- SQLite
- Can you reproduce the bug at https://try.gitea.io:
- Yes (https://try.gitea.io/ve3/test/src/tag/0.1)
- No
- Not relevant
Description
I tried to upload a file to a release but got error message "You cannot upload files of this type".
The file is zip and its mime type is application/zip.
Here is app.ini configuration.
[attachment]
ENABLED = true
PATH = D:/my-work-spaces/gitea/data/attachments
ALLOWED_TYPES = application/zip|application/x-compressed-tar|application/x-gzip
MAX_SIZE = 20
MAX_FILES = 1