Issue Bug Resolved

#111257EXT:form – Email finisher crashes when a multiple file upload is submitted

Benjamin Robinson 10/27/26, 10:13 updated 10/28/26, 13:10

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

  1. Josua Vogel commented and changed status Under Review Resolved done 0 % 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.