Re: Issue on QuickForm and grouping of file-objects

From: Date: Wed, 10 Sep 2003 14:01:34 +0000
Subject: Re: Issue on QuickForm and grouping of file-objects
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-21361@lists.php.net to get a copy of this message
<tobias@schlitt.info> wrote : > > Hi all! > > I think, this possibly is a bug: > > I tried using QuickForm file-objects to realize a file-upload. Works fine.. > But when I try to group the file-object with a link-object, the file-object > remains empty after upload, although the file has been uploaded correctly.. > > Is there a knowen issue about that? It's maybe because your group has a name and you use its name when you create the elements. There is a 'appendName' parameter you can set to false in addGroup(). You can check this behavior by looking at the html source and find the file element name. If it is something like 'my_group_name[my_file_element_name]' and you are looking for 'my_file_element_name' only, then set 'appendName' to false. Otherwise, this might be a bug, I haven't yet tested file in groups AFAIR ;) There is a file upload example in the QuickForm examples, make sure you use the correct syntax. Bertrand Mansion Mamasam

« previous php.pear.dev (#21361) next »