enable multiple file upload
tested with miniserve running on linux, with browsers:
Safari on iPhone
Firefox on Linux (NixOS)
@@ -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" }
}
}
