Issue Type: Bug Created: 2011-08-08T08:33:35.000+0000 Last Updated: 2011-09-03T22:20:10.000+0000 Status: Resolved Fix version(s): - 1.11.11 (29/Sep/11)
Reporter: Amit Dar (amitdar) Assignee: Thomas Weidner (thomas) Tags: - Zend_File_Transfer
Related issues: Attachments:
The Zend_File_Transfer_Adapter_Http adds the upload validator within itself, but don't expose it so users can access it, remove it or change the validator behivor such as change error message. It allows to set new validators but upload validator require the filesList array in the constructor, which is an internal variable and cannot be accessed from outside of the class.
Posted by Thomas Weidner (thomas) on 2011-09-03T22:18:24.000+0000
Without the upload validator a file transfer is not possible. When a user would be able to delete the upload validator no file could be uploaded.
But you can set your own upload validator with setValidators() where you can set your own error messages. Additionally you can simply use the validation resources which are available for about 15 languages to set your own error messages.
And there is no filesList array within the Http adapter. But the internal _files() array is only protected which means that you can access it by extending the base class.
When you want to do something special (not noted in your description) feel free to open a new issue with an example of your problem. Changing error messages is possible and should not be a reason to provide the internal files array to public to prevent security risks.
Posted by Thomas Weidner (thomas) on 2011-09-03T22:19:44.000+0000
Closing as no issue related to the described problem
Have you found an issue?
See the Overview section for more details.