array_key_exists(): Argument #2 ($array) must be of type array, string given in FileParameterBag Description
Opened this issue · 1 comments
lucamillers commented
While working with file uploads in Contao 4.13 using the Terminal42\mp_forms-Bundle (5.2.0), I encountered an issue where the array_key_exists() function throws an error because it is given a string instead of an array. This issue occurs in the set method of the FileParameterBag class.
To reproduce:
My case was a checkbox-menu that (thanks to conditionalFormFields) showed the user two input fields based on the checkbox-selection, a text box and a file-upload-widget. When trying to upload a file, upon clicking next, I'm getting the following error: