1
0
mirror of https://github.com/labstack/echo.git synced 2026-05-16 09:48:24 +02:00
Files
echo/website/content/cookbook/file-upload.md
T
Vishal Rana 49321f5829 Updated website and examples
Signed-off-by: Vishal Rana <vr@labstack.com>
2017-01-17 10:47:16 -08:00

46 lines
710 B
Markdown

+++
title = "File Upload"
description = "File upload example for Echo"
[menu.main]
name = "File Upload"
parent = "cookbook"
weight = 7
+++
## How to upload single file with fields?
### Server
`server.go`
{{< embed "file-upload/single/server.go" >}}
### Client
`index.html`
{{< embed "file-upload/single/public/index.html" >}}
## How to upload multiple files with fields?
### Server
`server.go`
{{< embed "file-upload/multiple/server.go" >}}
### Client
`index.html`
{{< embed "file-upload/multiple/public/index.html" >}}
## Source Code
- [single]({{< source "file-upload/single" >}})
- [multiple]({{< source "file-upload/multiple" >}})
## Maintainers
- [vishr](https://github.com/vishr)