aboutsummaryrefslogtreecommitdiff
path: root/lib/classes/forms/FileInput.php
diff options
context:
space:
mode:
Diffstat (limited to 'lib/classes/forms/FileInput.php')
-rw-r--r--lib/classes/forms/FileInput.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/classes/forms/FileInput.php b/lib/classes/forms/FileInput.php
index 5862b3c..1822314 100644
--- a/lib/classes/forms/FileInput.php
+++ b/lib/classes/forms/FileInput.php
@@ -13,9 +13,9 @@ class FileInput extends Input
$template->folder = $this->value;
$template->id = md5(uniqid());
$template->uploadUrl = $this->attributes['upload_url'];
- $template->multiple = $this->attributes['multiple'] ?? '';
+ $template->multiple = $this->attributes['multiple'] ?? false;
$template->accept = $this->attributes['accept'] ?? '*/*';
- $template->required = $this->attributes['required'] ?? '';
+ $template->required = $this->attributes['required'] ?? false;
return $template->render();
}