ZF-8875: Zend_Validate_File_Size error message does not display file size if usebytestring = false

Issue Type: Bug Created: 2010-01-19T14:18:49.000+0000 Last Updated: 2010-01-20T14:55:00.000+0000 Status: Resolved Fix version(s): - 1.10.0 (27/Jan/10)

Reporter: Orhan Kavrakoglu (aib) Assignee: Thomas Weidner (thomas) Tags: - Zend_Validate_File

Related issues: Attachments: - Size.diff


As in the summary. If 'bytestring' => false is given as an option, the templated error message does not display the uploaded file's original size. e.g.:

Maximum allowed size for file 'libcurl-4.dll' is '1024' but '' detected

A quick glance suggests Zend_Validate_File_FilesSize may have the same error, but I haven't tested it.


Posted by Orhan Kavrakoglu (aib) on 2010-01-19T14:21:35.000+0000

This small patch seems to fix the issue. Again, I haven't tested the FilesSize part.

Posted by Thomas Weidner (thomas) on 2010-01-20T14:54:59.000+0000

Fixed with r20455

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.