From 273e731191b73ec5a21f5d588f467e54508d6d2d Mon Sep 17 00:00:00 2001 From: Michael Hueschen Date: Fri, 15 Jan 2021 10:58:43 -0500 Subject: enable multiple file upload tested with miniserve running on linux, with browsers: - Safari on iPhone - Firefox on Linux (NixOS) --- src/renderer.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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" } } } -- cgit v1.2.3