File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,35 @@ 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\C MS\E xtbase\D omain\M odel\F ileReference", "TYPO3\C MS\C ore\H ttp\U ploadedFile"
17+ given at property path "documents".
18+
19+ The import for the PHP Attribute was missing
20+
21+ .. code-block :: diff
22+ :caption: packages/MyExtension/Classes/Domain/Model/MyModel.php
23+
24+ +use TYPO3\CMS\Extbase\Annotation\FileUpload;
25+
26+ #[FileUpload([
27+ 'validation' => [
28+ 'minFiles' => 0,
29+ 'maxFiles' => 1,
30+ 'mimeType' => ['allowedMimeTypes' => ['application/pdf']],
31+ ],
32+ 'uploadFolder' => '2:/documents/',
33+ ])]
34+ protected ?FileReference $documents = null;
35+
36+ Adding the proper import to properly utilize the attribute will then also properly allow introspection of the PropertyMapper later on.
37+
938Exception while property mapping at property path "":Object with identity "1" not found.
1039========================================================================================
1140
You can’t perform that action at this time.
0 commit comments