Skip to content

Commit

Permalink
Bugfix Submitting Image violating filesize cause error when moving st…
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas-Sommer committed Dec 6, 2024
1 parent 7236ad7 commit 0375666
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/ViewHelpers/Form/UploadedResourceViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
use TYPO3\CMS\Extbase\Domain\Model\FileReference;
use TYPO3\CMS\Extbase\Property\PropertyMapper;
use TYPO3\CMS\Extbase\Security\Cryptography\HashService;
use TYPO3\CMS\Extbase\Validation\Error;
use TYPO3\CMS\Fluid\ViewHelpers\Form\AbstractFormFieldViewHelper;
use TYPO3\CMS\Fluid\ViewHelpers\Form\UploadViewHelper;

Expand Down Expand Up @@ -149,7 +150,7 @@ protected function getUploadedResources()
$resources = $this->getValueAttribute();
if (is_array($resources)) {
foreach ($resources as $resource) {
if ($resource === null) continue;
if ($resource === null || $resource instanceof Error) continue;
if ($resource instanceof FileReference) {
$return[] = $resource;
continue;
Expand Down

0 comments on commit 0375666

Please sign in to comment.