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();

          }
      }