Zend Framework

Zend_Validate_File_Size error message does not display file size if usebytestring = false

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: 1.9.7
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Validate_File
  • Labels:
    None

Description

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.

Activity

Hide
Orhan Kavrakoglu added a comment -

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

Show
Orhan Kavrakoglu added a comment - This small patch seems to fix the issue. Again, I haven't tested the FilesSize part.
Hide
Thomas Weidner added a comment -

Fixed with r20455

Show
Thomas Weidner added a comment - Fixed with r20455

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: