Robert Rusu 13 Newbie Poster

First of all hello :).
Spend two days trying to integrateAurigma the Expressversion
In PHP. I am using Zend Framework

I've managed to make the think to be `visible` but it fails to do what `upload.php` should do .
Note : This is in the Controller

function onFileUploaded($uploadedFile) {
      $absGalleryPath = realpath($this->_path) . DIRECTORY_SEPARATOR;   
      $originalFileName = $uploadedFile->getSourceName();
      $files = $uploadedFile->getConvertedFiles();
      // Save source file
      $sourceFile = $files[0];
      /* @var $sourceFile ConvertedFile */
      if ($sourceFile) {
        $sourceFile->moveTo($absGalleryPath . $originalFileName);
      }
    }
    
 	/**
     * 
     * Admin_ProductController::uploadImagesAction()
     * Display Aurigma Uploader.
     */
    public function uploadImagesAction(){
        
        $this->_session->message = $this->_session->messages['message_backend_product_image_notification_succesfully_added'];
        
    	require_once ROOT_PATH . "/Aurigma/ImageUploaderPHP/UploadHandler.class.php";
		require_once ROOT_PATH . "/Aurigma/ImageUploaderPHP/UploadedFile.class.php";

    	$product_id = $this->_getParam('prod');
    	$product = Model_Product::getById($product_id);
        $this->_path = "http://rstcenter.com/forum/images/products/".$product['id']."/";
		$uploadHandler = new UploadHandler();
        
        $uploadHandler->saveFiles(realpath($this->_path));
        
        $uploadHandler->setFileUploadedCallback('onFileUploaded');

        $uploadHandler->processRequest();
    }

Any ideas are welcomed :).

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.