Neos.Neos/Classes/Controller/Backend/ContentController.php
public function initializeUploadAssetAction()
    {
        $propertyMappingConfiguration = $this->arguments->getArgument('asset')->getPropertyMappingConfiguration();
        $propertyMappingConfiguration->allowAllProperties();
        $propertyMappingConfiguration->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, true);
        $propertyMappingConfiguration->setTypeConverterOption(AssetInterfaceConverter::class, AssetInterfaceConverter::CONFIGURATION_ONE_PER_RESOURCE, true);
        $propertyMappingConfiguration->allowCreationForSubProperty('resource');
    }
public function initializeUploadAssetAction()
    {
        $propertyMappingConfiguration = $this->arguments->getArgument('asset')->getPropertyMappingConfiguration();
        $propertyMappingConfiguration->allowAllProperties();
        $propertyMappingConfiguration->setTypeConverterOption(PersistentObjectConverter::class, PersistentObjectConverter::CONFIGURATION_CREATION_ALLOWED, true);
        $propertyMappingConfiguration->setTypeConverterOption(AssetInterfaceConverter::class, AssetInterfaceConverter::CONFIGURATION_ONE_PER_RESOURCE, true);
        $propertyMappingConfiguration->allowCreationForSubProperty('resource');
    }
public function initializeUploadAssetAction ( ) { $ propertyMappingConfiguration = $ this -> arguments -> getArgument ( 'asset' ) -> getPropertyMappingConfiguration ( ) ; $ propertyMappingConfiguration -> allowAllProperties ( ) ; $ propertyMappingConfiguration -> setTypeConverterOption ( PersistentObjectConverter :: class , PersistentObjectConverter :: CONFIGURATION_CREATION_ALLOWED , true ) ; $ propertyMappingConfiguration -> setTypeConverterOption ( AssetInterfaceConverter :: class , AssetInterfaceConverter :: CONFIGURATION_ONE_PER_RESOURCE , true ) ; $ propertyMappingConfiguration -> allowCreationForSubProperty ( 'resource' ) ; }
Initialize property mapping as the upload usually comes from the Inspector JavaScript
Initialize property mapping as the upload usually comes from the Inspector JavaScript