Skip to content

Attachment file type is not allowed #7302

Closed
@pditommaso

Description

@pditommaso
  • Gitea version (or commit ref): 1.8.1
  • Git version: 2.7.4
  • Operating system: Linux
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
    • Not relevant
  • Log gist:

Description

I've the following config for the attachments

[attachment]
ENABLED       = true
PATH          = /var/lib/gitea/data/attachments/
MAX_SIZE      = 4
MAX_FILES     = 5
ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip

However, when uploading a zip file it says "File type is not allowed".

Screenshots

Screenshot 2019-06-26 at 16 56 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/staletype/questionIssue needs no code to be fixed, only a description on how to fix it yourself.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions