diff --git a/src/Resources/contao/templates/widgets/form_upload-on-steroids.html5 b/src/Resources/contao/templates/widgets/form_upload-on-steroids.html5
index 6415986..7a499b1 100644
--- a/src/Resources/contao/templates/widgets/form_upload-on-steroids.html5
+++ b/src/Resources/contao/templates/widgets/form_upload-on-steroids.html5
@@ -17,7 +17,7 @@
files as $key => $file): ?>
- -
+
-
showThumbnail): ?>
= sprintf(
'',
@@ -26,7 +26,7 @@
$file['thumbnail']['height'],
$file['name']
) ?>
-
= $file['name'] ?>
+
= $file['name'] ?>
= $file['name'] ?>
diff --git a/src/Widgets/UploadOnSteroids.php b/src/Widgets/UploadOnSteroids.php
index 06cf533..0d0eec8 100644
--- a/src/Widgets/UploadOnSteroids.php
+++ b/src/Widgets/UploadOnSteroids.php
@@ -285,7 +285,7 @@ private function validateMultipleUpload(): void
}
$inputName = $this->name;
- $values = \array_map('\Contao\StringUtil::binToUuid', $this->value);
+ $values = \array_map('\Contao\StringUtil::binToUuid', (array) $this->value);
$files = [];
$inputFiles = $this->getMultipleUploadedFiles();
@@ -367,7 +367,7 @@ private function deselectFile(string $inputName): void
return;
}
- $values = \array_map('\Contao\StringUtil::binToUuid', $this->value);
+ $values = \array_map('\Contao\StringUtil::binToUuid', (array) $this->value);
$diffValues = \array_values(\array_diff($values, $post['reset']));
$this->value = \array_map('\Contao\StringUtil::uuidToBin', $diffValues);
@@ -408,7 +408,7 @@ private function deleteFile(string $inputName): void
return;
}
- $values = \array_map('\Contao\StringUtil::binToUuid', $this->value);
+ $values = \array_map('\Contao\StringUtil::binToUuid', (array) $this->value);
$diffValues = \array_values(\array_diff($values, $post['delete']));
foreach ($post['delete'] as $delete) {