[TYPO3-mvc] Upload File

B L Praveen blpraveen2004 at gmail.com
Thu Jul 11 14:04:35 CEST 2013


I already  found this topic opened  here http://forum.typo3.org/index.php/m/690156/#msg_690156
But I am still  facing the problem to upload the image 

I added  initializeAction() to controller as I was getting error to convert array to string. 

public function initializeAction() {
if ($this->arguments->hasArgument('newModel')) {
$this->arguments->getArgument('newModel')->getPropertyMappingConfiguration()->setTargetTypeForSubProperty('imagepath', 'array');
}

}
But while updating into database it is passing the value of the field as array

UPDATE table SET imagepath=('','','','4','0') tstamp='1373527817', sys_language_uid=NULL WHERE uid='2'

And I get error "Operand should contain 1 column"

Please advice me thanks



More information about the TYPO3-project-typo3v4mvc mailing list