[Flow] Property Mapping on creating of TYPO3.Media.Image via Ajax
Daniel Völkel
d.voelkel at medienwuerfel.de
Mon Sep 22 15:39:15 CEST 2014
Hi everybody,
I built my own image upload based on the example from the Flow Cookbook[1] which worked fine so far.
Now I want to rebuild the upload to have an ajax based image upload. Unfortunately I keep getting errors on a wrong property mapping:
Exception while property mapping for target type "Vendor\PackageDomain\Model\Bild", at property path "image": It is not allowed to map property "resource".
The rendered formfield itself looks like this:
<input type="file" name="bild[image][resource] />
And I also attached some property mapping
public function initializeCreateAction() {
$propertyMappingConfiguration = $this->arguments->getArgument('bild')->getPropertyMappingConfiguration();
$propertyMappingConfiguration->allowAllProperties();
$propertyMappingConfiguration->setTypeConverterOption('TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter', \TYPO3\Flow\Property\TypeConverter\PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, TRUE);
}
I have also built a similar and working ajax upload with TYPO3/Flow/Ressource which can't use here because I need the access to some image converting functions.
Do you have any idea what could be wrong?
Kind regards,
Daniel
[1] http://wiki.typo3.org/Flow_Cookbook#Upload_an_image_as_TYPO3.Media.27s_Image_property
More information about the Flow
mailing list