Project

General

Profile

Actions

Bug #104547

closed

Multiple file upload broken in UploadViewHelper

Added by Torben Hansen 4 months ago. Updated about 1 month ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2024-08-04
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions #1

Updated by Gerrit Code Review 4 months ago

  • Status changed from New to Under Review

Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85506

Actions #2

Updated by Gerrit Code Review 4 months ago

Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/85506

Actions #3

Updated by Torben Hansen 4 months ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #4

Updated by Benni Mack about 1 month ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF