|
@@ -276,8 +276,8 @@ func main() {
|
|
|
file, _ := c.FormFile("file")
|
|
file, _ := c.FormFile("file")
|
|
|
log.Println(file.Filename)
|
|
log.Println(file.Filename)
|
|
|
|
|
|
|
|
- // Upload the file to specific dst.
|
|
|
|
|
- // c.SaveUploadedFile(file, dst)
|
|
|
|
|
|
|
+ // Upload the file to specific dst.
|
|
|
|
|
+ // c.SaveUploadedFile(file, dst)
|
|
|
|
|
|
|
|
c.String(http.StatusOK, fmt.Sprintf("'%s' uploaded!", file.Filename))
|
|
c.String(http.StatusOK, fmt.Sprintf("'%s' uploaded!", file.Filename))
|
|
|
})
|
|
})
|
|
@@ -309,7 +309,7 @@ func main() {
|
|
|
log.Println(file.Filename)
|
|
log.Println(file.Filename)
|
|
|
|
|
|
|
|
// Upload the file to specific dst.
|
|
// Upload the file to specific dst.
|
|
|
- // c.SaveUploadedFile(file, dst)
|
|
|
|
|
|
|
+ // c.SaveUploadedFile(file, dst)
|
|
|
}
|
|
}
|
|
|
c.String(http.StatusOK, fmt.Sprintf("%d files uploaded!", len(files)))
|
|
c.String(http.StatusOK, fmt.Sprintf("%d files uploaded!", len(files)))
|
|
|
})
|
|
})
|