Hello (sorry for my english i'm french), I use sfForm standalone to upload file.
When i don't use prefix with >> $this->widgetSchema->setNameFormat(self::PREFIX . '[%s]'); I can bind my data with my form >> $oFormFile->bind(array(), array('file' => $_FILES['file'])); But when i use prefix lie that : >> $this->widgetSchema->setNameFormat(self::PREFIX . '[%s]'); I can't bind my file >> $oFormFile->bind(array(), array('file' => $_FILES['myPrefix']['file'])); or >> $oFormFile->bind(array(), array('file' => $_FILES['myPrefix'])); I' ve tried to rewrite my array FILES bu no success with $file = array(); if (isset($_FILES[Altays_Form_Manager_TicketOpen::PREFIX]) == true) { foreach ($_FILES[Altays_Form_Manager_TicketOpen::PREFIX] as $fileAttr => $aFile) { foreach ($aFile as $fileName => $fileValue) $file[Altays_Form_Manager_TicketOpen::PREFIX] [$fileName][$fileAttr] = $fileValue; } } >> $oFormFile->bind(array(), array('file' => $file)); How to bind my file when I use $this->widgetSchema->setNameFormat (self::PREFIX . '[%s]'); ? Thanks, Dorian -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.