#111257EXT:form – Email finisher crashes when a multiple file upload is submitted
Description
TYPO3 14.3.10 (also on current main). EXT:form.
Submitting a form with a FileUpload/ImageUpload element that has properties.multiple: true and at least one uploaded file aborts in the EmailToReceiver/EmailToSender finisher. The request ends in the production exception handler. No mail is sent.
InvalidArgumentValueException: The argument “each” was registered with type “array”, but is of type “string” in view helper “TYPO3Fluid\Fluid\ViewHelpers\ForViewHelper“
in Resources/Private/Frontend/Templates/Finishers/Email/Default.fluid.html
(same f:for in Default.fluid.txt)
A multiple upload is an ObjectStorage. RenderFormValueViewHelper sets isMultiValue from is_iterable($value), so it is true. FileUpload::processElementValue() returns valueToString(), a single imploded filename string. The finisher templates then run f:for on processedValue.
A FileUpload without multiple (single FileReference) renders and sends.
Steps:
1. Form with FileUpload, properties.multiple: true.
2. EmailToReceiver with the default Fluid email template (addHtmlPart: true).
3. Submit with one or more files.
Expected: mail is sent, filenames are listed.
Actual: ForViewHelper exception, no mail.
Introduced by the multiple-upload work (#105708) together with the display-value resolution in #106903, which stringifies the ObjectStorage while the templates still iterate it.
Reviews 2
History 36
-
Garvin Hicking changed category <span data-processor="relativetime" data-value="2026-10-27T10:23:56+00:00" > 10/27/26, 10:23 </span>
-
Josua Vogel changed assigned to Josua Vogel <span data-processor="relativetime" data-value="2026-10-27T15:57:38+00:00" > 10/27/26, 15:57 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 97176 status
NewUnder Review <span data-processor="relativetime" data-value="2026-10-27T19:57:17+00:00" > 10/27/26, 19:57 </span> -
Gerrit Code Review pushed patch set 2 for main to change 97176 <span data-processor="relativetime" data-value="2026-10-28T10:32:26+00:00" > 10/28/26, 10:32 </span>
-
Gerrit Code Review pushed patch set 1 for 14.3 to change 97193 <span data-processor="relativetime" data-value="2026-10-28T13:04:43+00:00" > 10/28/26, 13:04 </span>
-
Josua Vogel commented and changed status
Under ReviewResolved done0 %100 % <span data-processor="relativetime" data-value="2026-10-28T13:10:13+00:00" > 10/28/26, 13:10 </span>
Applied in changeset commit:19e5ef7ce660e712283473d51698bb84731c189c.