aboutsummaryrefslogtreecommitdiffstats
path: root/src/renderer.rs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/renderer.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/renderer.rs b/src/renderer.rs
index ef7285b..c64d459 100644
--- a/src/renderer.rs
+++ b/src/renderer.rs
@@ -107,7 +107,10 @@ 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="" multiple {}
+ @match &conf.uploadable_media_type {
+ Some(accept) => {input #file-input accept=(accept) type="file" name="file_to_upload" required="" multiple {}},
+ None => {input #file-input type="file" name="file_to_upload" required="" multiple {}}
+ }
button type="submit" { "Upload file" }
}
}