Zend file upload error - Exceeds the defined ini size

This error can occur due to the following reasons.
       1. Your upload image size is greater than the maximum upload size.
       2. You have not set the attribute enctype=multipart/form-data in the form tag.

fileUploadErrorAttack - File was illegally uploaded. This could be a possible attack

  It occurs when you try to get the File upload data after the Form getValues() function.
  First you have to add code for File upload data then the form values.

  Ex:
     if ($this->getRequest()->isPost()) {
       if($this->formObj->isValid($_POST)) {

               //Form upload section
                   $upload = new Zend_File_Transfer_Adapter_Http();
           
        $upload->addValidator('Count', false, array('min' =>0, 'max' => 1))
                ->addValidator('IsImage', false, 'jpeg,pjpeg,jpg,png,gif')
                  ->addValidator('Size', false, array('max' => '10MB'))
                       ->setDestination('upload_path');

                 try {
               
             $upload->receive();
                    
           } catch (Zend_File_Transfer_Exception $e) {
     
             die('ERROR'.$e->getMessage());
         }
              //Get form values

              $postValues = $this->formObj->getValues();

          }
      }

How to set value for multiple select options in Zend_Form_Element_Multiselect

We can do that using the setValue function by passig array of selected values
Ex:
    $users = new Zend_Form_Element_Multiselect("users");
    $users->setLabel("Users");
    $users->addMultiOptions(array('1'=>'John Smith','2'=>'Aaron Brown','3'=>'David Beckham');
    $users->setValue(array(1,2));
    so the names John and Aaron will be shown as selected.