low case file extension
parent
9ca7da9ae5
commit
1fb3f28aea
|
@ -59,7 +59,7 @@ func HandleMedia(w http.ResponseWriter, r *http.Request) {
|
|||
}
|
||||
}
|
||||
}
|
||||
fileName += fileExtension
|
||||
fileName += strings.ToLower(fileExtension)
|
||||
location, err := SelectedMediaStorage.Upload(fileName, file)
|
||||
if err != nil {
|
||||
w.WriteHeader(http.StatusInternalServerError)
|
||||
|
|
Loading…
Reference in New Issue