Issue Bug Closed

#91196Exception for FileUpload field in multi-step forms

Sebastian Klein 04/25/20, 13:22 updated 12/13/21, 12:06

Description

This issue occurs in TYPO3 10.4.0:

If you configure a multi-step form (with second ‘Step’ or ‘Summary step’) and add a field of type FileUpload, the following PHP exception occurs when you call the next step:

(1/1) Exception
Serialization of 'Closure' is not allowed

typo3_src-10.4.0/typo3/sysext/form/Classes/ViewHelpers/FormViewHelper.php line 49

49       $serializedFormState = base64_encode(serialize($this->arguments['object']->getFormState()));

If your form only has one page/step, the file upload works as expected.

Reviews 5