Skip to content

PPTX and other formats are badly recognized and downloaded with .zip extenstions #15748

Closed
@dusatvoj

Description

@dusatvoj
  • Gitea version (or commit ref): 1.14.0
  • Git version: 2.20.1
  • Operating system: Debian 10
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
    • Yes (provide example URL)
    • No
  • Log gist:

Description

Some people in our company have a problem when they upload pptx or docx or another OfficeOpenXML. It's downloaded with .zip extension bcs it's badly recognized. It's not happening in linux but in windows because it's zip mime type (some shitty windows stuff but it's annoying for them when they download presentation.pptx.zip). In linux is downloaded as pptx but with zip mime type (extension does not change)
I can understand why it's happening but I can't understand why mime type is not set by extension.

Screenshots

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions