Re: Quickform suggestion

From: Date: Wed, 23 Apr 2003 13:39:37 +0000
Subject: Re: Quickform suggestion
References: 1  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-15385@lists.php.net to get a copy of this message
<wolff@21st.de> wrote : > Am Wed, 23 Apr 2003 14:41:43 +0200 schrieb Bertrand Mansion > <bmansion@mamasam.com>: > >>> However, there´s one more issue I´ve just stumbled upon when trying >>> out the file upload feature - there doesn´t seem to be a built-in way >>> to retrieve the original name of a file. >>> >>> With normal text fields, I can do something like this to get the contents: >>> >>> $content = $form->getElementValue('myElement'); >> >> $form->getUploadedFile('myFileField'); > > Hi Bertrand, > > according to the inline docs this returns the temporary name of the > uploaded file. What I´m looking for is the "real" name :-) > >>> Also, is there some method that simply returns the same data array >>> that a callback function would receive as its parameter? >> >> $form->process('myFunction'); > > Err, no :-) > What I´m looking for is a method that simply *returns* the same array > that a callback function would receive, but that doesn´t actually call > a callback function. You meant for file uploads ? I didn't get it, sorry. :) Well, as Alexey said, that's probably missing. It will be added for Beta2. Bertrand Mansion Mamasam

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