Add example index.html file

This commit is contained in:
asonix 2020-06-09 21:57:43 -05:00
parent daa3d1caa3
commit d8a5661bf7
2 changed files with 22 additions and 1 deletions

2
Cargo.lock generated
View file

@ -1341,7 +1341,7 @@ checksum = "d4fd5641d01c8f18a23da7b6fe29298ff4b55afcccdf78973b24cf3175fee32e"
[[package]]
name = "pict-rs"
version = "0.1.1"
version = "0.1.2"
dependencies = [
"actix-form-data",
"actix-fs",

21
index.html Normal file
View file

@ -0,0 +1,21 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>Upload Images</title>
</head>
<body>
<form method="post" action="/image" enctype="multipart/form-data">
<legend>Upload images</legend>
<label for="images[]">Chose images to upload (PNG, JPG, GIF, BMP)</label>
<input
type="file"
name="images[]"
accept="image/png,image/gif,image/jpeg,image/bmp,.jpg,.jpeg,.png,.gif,.bmp"
multiple
/>
<button>Upload</button>
</form>
</body>
</html>