thomasW wrote:
> 
> Why do you expect that receive returns a false when the file was not 
> uploaded ? :-)
> 
> When you set the file element to be optional receive will of course return 
> true because it does not return is a file was uploaded but if the previous 
> defined actions were successfull or not. And as you defined the file
> element 
> to be optional it's ok for receive.
> 
> Receive is not the isUploaded method.
> 
> According to manual you could use
>  * getValue() (with 1.7)
>  * getFileName() (with directory check as no filename is attached to the
> set 
> directory)
>  * getFileInfo (the 'name' key will be empty in this case, and the 
> isUploaded key (1.7) will be false)
>  * the isUploaded method (with 1.7 in file adapter)
> 

Because if I didn't send the file, the script can not receive it :)

Thanks for the method list. I am getting an error on getFileInfo() ans
isUploaded(). I guess this methods are not in the trunk yet?

When can we expect 1.7 to go stable?

Regards,

Goran Juric
http://gogs.info/
-- 
View this message in context: 
http://www.nabble.com/Check-if-the-file-is-uploaded%2C-bug--tp20503526p20506069.html
Sent from the Zend Framework mailing list archive at Nabble.com.

Reply via email to