added check nil ctx value
This commit is contained in:
parent
3664c04465
commit
c4beb10b20
@ -6,7 +6,6 @@ import (
|
||||
)
|
||||
|
||||
func GetFileType(filename string) string {
|
||||
return "image"
|
||||
ext := strings.ToLower(filepath.Ext(filename))
|
||||
switch ext {
|
||||
case ".jpg", ".png":
|
||||
|
Loading…
Reference in New Issue
Block a user