🐛 Fixed broken MediaType method for File
This commit is contained in:
parent
41b9ad92c8
commit
e95851ee12
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue