🐛 Fixed broken MediaType method for File

This commit is contained in:
Maxim Lebedev 2023-11-10 03:52:40 +06:00
parent 41b9ad92c8
commit e95851ee12
Signed by: toby3d
GPG Key ID: 1F14E25B7C119FC5
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func (f File) Dir() string {
}
func (f File) MediaType() string {
return mime.TypeByExtension(f.Ext())
return mime.TypeByExtension(filepath.Ext(f.Path))
}
func (f File) GoString() string {