aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
authorboastful-squirrel <boastful.squirrel@gmail.com>2019-04-20 20:56:44 +0000
committerboastful-squirrel <boastful.squirrel@gmail.com>2019-04-20 20:56:44 +0000
commit1a796655f56c775c82902a9897102bdf2db93c2c (patch)
treea278b067d59a5e72e59ee5f09fbb3677c716fbb4 /src/renderer.rs
parentMerge pull request #74 from KSXGitHub/pullrequest.editorconfig (diff)
downloadminiserve-1a796655f56c775c82902a9897102bdf2db93c2c.tar.gz
miniserve-1a796655f56c775c82902a9897102bdf2db93c2c.zip
Set upload input as required
Diffstat (limited to 'src/renderer.rs')
-rw-r--r--src/renderer.rs2
1 files changed, 1 insertions, 1 deletions
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" }
}
}