Added video mime types
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
dbcd5a6cc9
commit
24018706d0
|
@ -84,6 +84,20 @@ func GetMimeTypeFromExtension(ext string) string {
|
||||||
case "ape":
|
case "ape":
|
||||||
return "audio/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
|
//Image types
|
||||||
case "png":
|
case "png":
|
||||||
return "image/png"
|
return "image/png"
|
||||||
|
|
Loading…
Reference in a new issue