aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorMichael Hueschen <m@mhueschen.space>2021-01-15 15:58:43 +0000
committerMichael Hueschen <m@mhueschen.space>2021-01-15 15:58:43 +0000
commit273e731191b73ec5a21f5d588f467e54508d6d2d (patch)
treedb9cf02d52efec5a32d8892cbd100952a36db407 /src/renderer.rs
parentMerge pull request #432 from svenstaro/dependabot/cargo/futures-0.3.11 (diff)
downloadminiserve-273e731191b73ec5a21f5d588f467e54508d6d2d.tar.gz
miniserve-273e731191b73ec5a21f5d588f467e54508d6d2d.zip
enable multiple file upload
tested with miniserve running on linux, with browsers: - Safari on iPhone - Firefox on Linux (NixOS)
Diffstat (limited to '')
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index 5a727d0..af08285 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -106,7 +106,7 @@ pub fn page(
form id="file_submit" action=(upload_action) method="POST" enctype="multipart/form-data" {
p { "Select a file to upload or drag it anywhere into the window" }
div {
- input#file-input type="file" name="file_to_upload" required="" {}
+ input#file-input type="file" name="file_to_upload" required="" multiple {}
button type="submit" { "Upload file" }
}
}