You should read the manual from 1.7 when you are using 1.7 and not the
online manual which always refers to the latest official release which is
actually 1.6.2.
Actually in 1.7 you can have a value but it will not be the file location
due to security reasons.
As written, when you need the file name, use getFileName().
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Simon Corless" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Tuesday, November 11, 2008 10:55 PM
Subject: [fw-general] Zend_Form_Element_File - getValue() in 1.7
A quick question to Thomas I suppose, how do I get the file name /
location
from a file uploaded using Zend_Form.
The docs contradict themselves...
In the code it uses:
$location = $form->foo->getFileName();
Then goes on to state in a note below:
"File values
Within HTTP a file element has no value. Therefor you will get no output
when calling getValue()."
So I suppose it's a small bug in the docs, but ultimately I need the file
name so how do I get it?!
Thanks
Simon
-----
Simon
http://www.ajb007.co.uk/
--
View this message in context:
http://www.nabble.com/Zend_Form_Element_File---getValue%28%29-in-1.7-tp20449098p20449098.html
Sent from the Zend Framework mailing list archive at Nabble.com.