Skip to content

Commit e575bc3

Browse files
authored
Property Exception while mapping file upload
1 parent 4e4ed6e commit e575bc3

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

Documentation/Exceptions/1297759968.rst

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,34 @@ TYPO3 Exception 1297759968
66

77
.. include:: /If-you-encounter-this-exception.rst.txt
88

9+
.. contents::
10+
11+
When using Extbase FileUpload, TYPO3 13.4.17
12+
============================================
13+
14+
.. warning::
15+
Exception while property mapping at property path "": Expected argument of type
16+
"TYPO3\CMS\Extbase\Domain\Model\FileReference", "TYPO3\CMS\Core\Http\UploadedFile"
17+
given at property path "documents".
18+
19+
The import for the PHP Attribute was missing
20+
21+
.. code-block:: diff
22+
23+
+use TYPO3\CMS\Extbase\Annotation\FileUpload;
24+
25+
#[FileUpload([
26+
'validation' => [
27+
'minFiles' => 0,
28+
'maxFiles' => 1,
29+
'mimeType' => ['allowedMimeTypes' => ['application/pdf']],
30+
],
31+
'uploadFolder' => '2:/documents/',
32+
])]
33+
protected ?FileReference $documents = null;
34+
35+
Added the attribute.
36+
937
Exception while property mapping at property path "":Object with identity "1" not found.
1038
========================================================================================
1139

0 commit comments

Comments
 (0)