gitea: Cannot upload jar file

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

Description

Despite this setting: ALLOWED_TYPES = image/jpeg|image/png|application/zip|application/gzip|application/java-archive

I does not allow upload jar files. If I set /, then the upload is allowed.

application/* also does not allow me to do that.

What should be the appropriate setting? …

Screenshots

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 1
  • Comments: 19 (7 by maintainers)

Commits related to this issue

Most upvoted comments

I did…

gitea-upload-invalid-type

I have the same issue but with .zip files. Can be reproduced on try.giteo.io using a Windows 10 PC and Chrome or Firefox. It works using iOS! So apparently, mime type is set differently/ incorrectly using Windows 10/ Chrome or Firefox?

2020-01-14 21_09_59-Release aktualisieren - test - Gitea_ Git with a cup of tea - https___try gitea