Ah I see,

Sorry, I should have read your mail more carefully. It looks like

Zend_Validate_File_Upload doesn't take your validator for size into account 
when generating the message.

This would mean there is a bug, or the way you 'fixed' it could also be a 
documentated way to go.

Could you search in the issuetracker to see if you can find an issue that 
describes this behavior?

If so, I would be happy to fix that. If you do not find such an issue, please 
create one.

-Bart


Op 14-12-11 09:18, Marc Tempelmeier schreef:
Hi,

yes, sorry, I meant I want to change that message.

Is the correct approach to set the php.ini higher than the
Zend_Validate_File_FilesSize? Seems strange to me.

I "fixed" it with adding
$vFileUpload = new Zend_Validate_File_Upload();
$vFileUpload->setMessage('my own personal message', 'fileUploadErrorIniSize');
to the file element.

Marc


-----Ursprüngliche Nachricht-----
Von: Bart McLeod [mailto:[email protected]]
Gesendet: Mittwoch, 14. Dezember 2011 09:05
An: [email protected]
Betreff: Re: [fw-general] Zend_Form_Element_File

Hi Marc,
"

i´ll get the validation error: File 'file' exceeds the defined ini size.

"
Isn't that expected behavior?

I suppose you should change the php.ini setting to the desired value.

-Bart

Op 13-12-11 15:10, Marc Tempelmeier schreef:
Hi,

I want to build an upload form, everything works but if I´ll upload files 
greater than the php.ini
i´ll get the validation error: File 'file' exceeds the defined ini size.

I added Zend_Validate_File_FilesSize with custom error messages, but the error 
is still there.
It is generated in Zend_Validate_File_Upload.

Any suggestions?


Greetings from Germany

Marc



--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to