Yes i have >> undefined index in $_FILES. It's logical. On 1 fév, 14:03, Tom Ptacnik <[email protected]> wrote: > Have you tried something like > > $oFormFile->bind(array(), array('file' => $_FILES > ['myPrefix_file'])); ? > > On 31 led, 23:07, DoRiaN <[email protected]> wrote: > > > Up please. > > > On 26 jan, 15:47, DoRiaN <[email protected]> wrote: > > > > Hello (sorry for my english i'm french), > > > > I usesfFormstandalone touploadfile. > > > > When i don't useprefixwith > > > > >> $this->widgetSchema->setNameFormat(self::PREFIX. '[%s]'); > > > > I can bind my data with my form > > > > >> $oFormFile->bind(array(), array('file' => $_FILES['file'])); > > > > But when i useprefixlie 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
