Fix attachment pruning logging; .mp4 extension issue
This commit is contained in:
parent
44a9509cd6
commit
b5183612be
2 changed files with 7 additions and 14 deletions
|
@ -173,6 +173,8 @@ func ExtensionByType(contentType string) string {
|
|||
switch contentType {
|
||||
case "image/jpeg":
|
||||
return ".jpg"
|
||||
case "video/mp4":
|
||||
return ".mp4"
|
||||
default:
|
||||
exts, err := mime.ExtensionsByType(contentType)
|
||||
if err == nil && len(exts) > 0 && extRegex.MatchString(exts[0]) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue