#109465EXT:form – Error in FileUpload/ImageUpload on form resubmission with validation errors
Description
*Description:*
While testing the new multiple FileUpload and ImageUpload feature, I encountered an issue when resubmitting a form that still contains validation errors.
On the first submission, validation behaves as expected. However, on subsequent submissions (without correcting the missing required fields), an exception is thrown.
Steps to reproduce:
- Fill out the form, leaving one or more required fields empty.
- Submit the form.
- → Validation errors are displayed as expected.
- Submit the form again without correcting the required fields.
- → An exception is thrown.
*Expected behavior:*
The form should consistently display validation errors without throwing an exception on repeated submissions.
*Actual behavior:*
An exception occurs on resubmission.
Error message (relevant excerpt):
...cms-form/Resources/Private/Frontend/Partials/ImageUpload.fluid.html: The argument "each" was registered with type "array", but is of type "TYPO3\CMS\Form\Mvc\Property\TypeConverter\PseudoFileReference" in view helper "TYPO3Fluid\Fluid\ViewHelpers\ForViewHelper". (/var/www/html/vendor/typo3fluid/fluid/src/Core/ViewHelper/ViewHelperInvoker.php:64)
*Additional information:*
A video and the full stack trace are attached.
Reviews 1
Files 3
History 67
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2026-04-01T15:38:31+00:00" > 04/01/26, 15:38 </span>
-
Josua Vogel changed assigned to Josua Vogel <span data-processor="relativetime" data-value="2026-04-01T16:02:39+00:00" > 04/01/26, 16:02 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 93520 status
NewUnder Review <span data-processor="relativetime" data-value="2026-04-02T08:42:41+00:00" > 04/02/26, 08:42 </span> -
Tung Ngo commented <span data-processor="relativetime" data-value="2026-04-02T14:32:43+00:00" > 04/02/26, 14:32 </span>
Josua Vogel wrote in #note-3:
> Hello @nstung, thanks for testing and reporting this bug. I´ll try to find a solution.Hi @josuavogel, thanks for the patch! I also tested it with various combinations of the “Allow multiple upload” and “Allow removal of uploaded files” toggles, turning them on and off individually as well. I’ll cast my vote on Gerrit. Have a nice Easter holiday!
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-04-13T15:50:08+00:00" > 04/13/26, 15:50 </span>Applied in changeset commit:d5bcfb7c5bece656adabff12e628a0d692761bc3.
-
Benni Mack changed status
ResolvedClosed <span data-processor="relativetime" data-value="2026-04-21T11:30:33+00:00" > 04/21/26, 11:30 </span>
Hello @nstung, thanks for testing and reporting this bug. I´ll try to find a solution.