1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-22 20:06:21 +02:00
echo/website/content/recipes/file-upload.md
Vishal Rana 0176385654 Moved examples to recipes
Signed-off-by: Vishal Rana <vr@labstack.com>
2015-10-08 20:10:55 -07:00

585 B

title menu
File Upload
side
parent weight
recipes 7
  • Multipart/form-data file upload
  • Multiple form fields and files

Use req.ParseMultipartForm(16 << 20) for manually parsing multipart form. It gives us an option to specify the maximum memory used while parsing the request body.

Server

server.go

{{< embed "file-upload/server.go" >}}

Client

index.html

{{< embed "file-upload/public/index.html" >}}

Maintainers

Source Code