mirror of
https://github.com/labstack/echo.git
synced 2024-12-24 20:14:31 +02:00
0176385654
Signed-off-by: Vishal Rana <vr@labstack.com>
32 lines
585 B
Markdown
32 lines
585 B
Markdown
---
|
|
title: File Upload
|
|
menu:
|
|
side:
|
|
parent: recipes
|
|
weight: 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
|
|
|
|
- [vishr](https://github.com/vishr)
|
|
|
|
### [Source Code](https://github.com/labstack/echo/blob/master/recipes/file-upload)
|