From 1a796655f56c775c82902a9897102bdf2db93c2c Mon Sep 17 00:00:00 2001 From: boastful-squirrel Date: Sat, 20 Apr 2019 22:56:44 +0200 Subject: Set upload input as required --- 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 c1dcdb2..06f7bec 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -47,7 +47,7 @@ pub fn page( form id="file_submit" action={(upload_route) "?path=" (current_dir)} 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" {} + input#file-input type="file" name="file_to_upload" required="" {} button type="submit" { "Upload file" } } } -- cgit v1.2.3