Skip to content

Commit

Permalink
README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
xis committed Aug 11, 2020
1 parent d44efd3 commit bda1279
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ func main() {
router.POST("/upload", func(c *gin.Context) {
// parsing
p, err := storage.Parse(c.Request)
// or you can use ParseButMax if you need limited size
p, err := storage.ParseButMax(32<<20, 5, c.Request)
if err != nil {
fmt.Println(err)
}
Expand Down

0 comments on commit bda1279

Please sign in to comment.