PUBLISHED_FROM=ebf5568abe82952ab2751298185a10189098013f
This commit is contained in:
Бобби authored and Cesanta Bot committed 2017-10-16 15:18:24 +00:00
1 parent f0c6630a16
commit 6e3e5560d0
33 files changed
+98 -193

No files matched your search

+5 -7
View File
@@ -1,14 +1,12 @@
---
title: Handling file uploads
---
# Handling file uploads
In order to handle file uploads, use the following HTML snippet:
```HTML
<form method="POST" action="/upload" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
<form method="POST" action="/upload" enctype="multipart/form-data">
<input type="file" name="file">
<input type="submit" value="Upload">
</form>
```
Uploaded files will be sent to the `/upload` endpoint via the `POST` request.