seee
This commit is contained in:
parent
f15c40c713
commit
0b47c87810
@ -16,7 +16,6 @@ func uploadFile(wr http.ResponseWriter, rq *http.Request) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
// Retrieve the uploaded file using the form field `myFile`
|
|
||||||
file, handler, er := rq.FormFile("file")
|
file, handler, er := rq.FormFile("file")
|
||||||
if er != nil {
|
if er != nil {
|
||||||
http.Error(wr, "Error getting the file", http.StatusBadRequest)
|
http.Error(wr, "Error getting the file", http.StatusBadRequest)
|
||||||
|
Loading…
Reference in New Issue
Block a user