By giving some code where we can reproduce this behaviour.
Because the validators need the elements name and not the uploaded filename
to validate something.
The reason is that at the time we validate, the real file does not exist.
The file element and the file adapter are aware of this behaviour.
Using the validators manually is possible but will come to such a error when
they are misused or properties are set false.
Anyhow... give some code which shows the problem and we can help.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Joó Ádám" <[EMAIL PROTECTED]>
To: "Thomas Weidner" <[EMAIL PROTECTED]>
Cc: "Zend Framework General" <[email protected]>
Sent: Thursday, October 30, 2008 10:02 AM
Subject: Re: [fw-general] Zend_Form_Element_File does not work!
"Probably because you named your form element not file.txt ?"
???
Should I name my form elements name after the files which are going to
be uploaded? I don't think so.
"file.txt" is always the name of the file uploaded.
"And as I always write: «to say that something doesnt work is not
enough to get proper help»."
I know it. However, I didn't know what to say. I created a File
element, added a label and the Size validator, and then was suprised
that this error message occurs. I found out that the Size helper
throws this message, because it is unable to find the file.
On #zftalk another guy said me that the same problem occurs at him.
How could I further help to fix this?
Regards,
Ádám