Added video mime types
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
DataHoarder 2022-03-11 18:27:03 +01:00
parent dbcd5a6cc9
commit 24018706d0

View file

@ -84,6 +84,20 @@ func GetMimeTypeFromExtension(ext string) string {
case "ape":
return "audio/ape"
//Video types
case "mkv":
return "video/x-matroska"
case "webm":
return "video/webm"
case "mp4", "m4v":
return "video/mp4"
case "ogv":
return "video/ogg"
case "ts":
return "video/mp2t"
case "avi":
return "video/x-msvideo"
//Image types
case "png":
return "image/png"