mirror of
https://git.asonix.dog/asonix/pict-rs
synced 2024-12-22 03:11:24 +00:00
Add example index.html file
This commit is contained in:
parent
daa3d1caa3
commit
d8a5661bf7
2 changed files with 22 additions and 1 deletions
2
Cargo.lock
generated
2
Cargo.lock
generated
|
@ -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
21
index.html
Normal 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>
|
Loading…
Reference in a new issue