docs(readme): fix single file example (#1017)
issue discovered by @sgon00 at gitter
This commit is contained in:
parent
65a6dd46a5
commit
fe4d405108
@ -276,7 +276,7 @@ func main() {
|
|||||||
file, _ := c.FormFile("file")
|
file, _ := c.FormFile("file")
|
||||||
log.Println(file.Filename)
|
log.Println(file.Filename)
|
||||||
|
|
||||||
c.String(http.StatusOK, fmt.Printf("'%s' uploaded!", file.Filename))
|
c.String(http.StatusOK, fmt.Sprintf("'%s' uploaded!", file.Filename))
|
||||||
})
|
})
|
||||||
router.Run(":8080")
|
router.Run(":8080")
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user