Allow movie as attachements #8312

Closed
opened 2025-11-02 08:01:58 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Glandos on GitHub (Jan 3, 2022).

Feature Description

Currently, there is a hardcoded list of allowed MIME types: ab77a24f18/modules/setting/attachment.go (L19)

However, it should be great to be able to upload webm/mp4 short movies, that are really more efficient for small dynamic screen reports.

Screenshots

No response

Originally created by @Glandos on GitHub (Jan 3, 2022). ### Feature Description Currently, there is a hardcoded list of allowed MIME types: https://github.com/go-gitea/gitea/blob/ab77a24f18ae45248bd6c71778fe3bfacacf864f/modules/setting/attachment.go#L19 However, it should be great to be able to upload webm/mp4 short movies, that are really more efficient for small dynamic screen reports. ### Screenshots _No response_
Author
Owner

@Gusted commented on GitHub (Jan 3, 2022):

Currently, there is a hardcoded list of allowed MIME types:

It's not hardcoded, and that's not the actual value when used in production(it's specified a few lines below at line 32). I think adding a common video format makes sense, e.g. when a user wants to demonstrate a bug or something within a issue.

@Gusted commented on GitHub (Jan 3, 2022): > Currently, there is a hardcoded list of allowed MIME types: It's not hardcoded, and that's not the actual value when used in production(it's specified a few lines below at line 32). I think adding a common video format makes sense, e.g. when a user wants to demonstrate a bug or something within a issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#8312