Issue Bug Closed

#104547Multiple file upload broken in UploadViewHelper

Torben Hansen 08/04/24, 07:21 updated 10/15/24, 09:08

Description

When using the f:form.upload ViewHelper to upload for a property of a DTO or domain model, it is not possible to upload multiple files, because the trusted properties are registered wrong. This results in the following extbase property mapping exception:

Exception while property mapping at property path "files": It is not allowed to map property "0". You need to use $propertyMappingConfiguration->allowProperties('0') to enable mapping of this property.

If the ViewHelper is configured to handle multiple files for upload, the filedname for the registerFieldNameForFormTokenGeneration must be calculated to allow multiple files.

Reviews 1

History 24

  1. Gerrit Code Review pushed patch set 1 for main to change 85506 status New Under Review 08/04/24, 07:37

  2. Gerrit Code Review pushed patch set 2 for main to change 85506 08/05/24, 17:31

  3. Torben Hansen commented and changed status Under Review Resolved done 0 % 100 % 08/06/24, 07:40

    Applied in changeset commit:5c7c8fab7fcc41f9d9614d1bc8863004029d71ba.

  4. Benni Mack changed status Resolved Closed 10/15/24, 09:08