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]
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]