Merge e95ba543f9
into 5fa403c874
This commit is contained in:
commit
316cd02333
|
@ -48,7 +48,7 @@ func UploadAttachment(ctx *context.Context) {
|
|||
allowed := false
|
||||
for _, t := range allowedTypes {
|
||||
t := strings.Trim(t, " ")
|
||||
if t == "*/*" || t == fileType {
|
||||
if t == "*/*" || strings.HasPrefix(fileType, t) {
|
||||
allowed = true
|
||||
break
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user