CakePHP form file upload validation multiple files

Hi all,
new to cakePHP, editing an existing application in my company
I have a from with multiple files to upload,
I managed to set up the form with the below link
http://deadlytechnology.com/php/file-uploads-jquery-cakephp/
adding dynamically file inputs
Now I don’t have any idea about how to manage the form validate. I need to validate file mime types ‘doc, docx, xls, xlsx, csv,ppt,pptx’.
Also in the view .ctp file

    $arrValidation = array(
        'Rules' => array(
            'project_name' => array('required' => 1),
            'description' => array('required' => 1),
            'status' => array('required' => 1),
            'project_type' => array('required' => 1),
            'start_dates' => array('required' => 1),
            'end_dates' => array('required' => 1),
        ),
        'Messages' => array(
            'project_name' => array('required' => __('Please Enter Project Name')),
            'description' => array('required' => __('Please Enter Description')),
            'status' => array('required' => __('Please Select Status')),
            'project_type' => array('required' => __('Please Select A Project Type')),
            'start_dates' => array('required' => __('Please Select A Project Start Date')),
            'end_dates' => array('required' => __('Please Enter Project End Date'))));

     echo $this->Form->setValidation($arrValidation);

how to add the JS validation file the above snippet.

I have added validate function

public $validate = array(

    'PluginFile[]' => array(
        'extension' => array(
            'rule' => array('extension', array('pdf')),
            'message' => 'Only pdf files',
         )
    )
);

but it not working validation.
Please help me to add both front end and back end validation
pardon for my english
Thanks in advance

If you are using cake 2, For validation you can add inside the Controller

f(extension != ‘.pdf’) {
$this->Model->invalidate(‘extension’, ‘Invalid file format’);
}

then you can get the error message by

$errorMessage = $this->Model->validationErrors;