josegonzalez/upload — Issue #49: Not rendering errors on the view
Author: heshanh
Created: 2012-02-22 05:40:58+00:00
State: open

Cake v : 2.0.5

validation rule:
,'img' => array("valid ext" => array(
'rule' => array('isValidExtension', array('jpg', 'png', 'tif'), false),
'message' => 'File upload directory does not exist'
)
)

file field:
echo $this->Form->file("Event.img", array("label"=>false,"div"=>false))

When a user uploads a file with an extension not in the array it doesn't render an error next to the file field in the view.
it however does blocks the upload.