问题
I am making a plugin with Extbase. My Responsitory got image upload and i want front end user can upload image. When i check the FormFields.html from Partials, the field image upload was empty with simple text: "File upload is not implemented!". I tried to use
<f:form.upload property="logo" name="file" /><br />
but after submit the form, i got the error message: "Exception while property mapping at property path "logo": Property "name" was not found in target object of type "TYPO3\CMS\Extbase\Domain\Model\FileReference". No file was uploaded and no data was inserted to database.
Is there anyway to upload image and map it with extbase Respository?
回答1:
You can not use both property and name attributes in within upload Viewhelper. Have a look at https://github.com/helhum/upload_example for a working example.
来源:https://stackoverflow.com/questions/42849508/extbase-typo3-upload-image-for-front-end-user