ZF-12128: File Upload validator should display file name instead of field name in error message

Description

In file Zend_Validate_File_Upload.php in the method isValid() should be used


instead of

to do not loose real file name information

For example look at the Zend_Validate_File_Size.php validator. In the lines ``` {{$file}} is a file content, not field name.

Comments

Patch and unit tests added.

Reviewed patch and confirm that it works as expected with no obvious side-effects. I would like someone on the ZF/CR-Team to confirm that the upload validator should use the uploaded file name and not the field name in the exception message.

We use the value submitted for all other form validators don't we?

Fixed in trunk r24959