src/Upload/UploadClass.php
public function setUploadpath($dir_name)
	{
		//set the value of upload_path property
		//set the upload path
		if($dir_name === null)	$this->upload_path = Registry::getConfig()['upload_path'];

		else $this->upload_path = $dir_name;
		
		return $this;
	}
public function setUploadpath($dir_name)
	{
		//set the value of upload_path property
		//set the upload path
		if($dir_name === null)	$this->upload_path = Registry::getConfig()['upload_path'];

		else $this->upload_path = $dir_name;
		
		return $this;
	}
public function setUploadpath ( $ dir_name ) { //set the value of upload_path property //set the upload path if ( $ dir_name === null ) $ this -> upload_path = Registry :: getConfig ( ) [ 'upload_path' ] ; else $ this -> upload_path = $ dir_name ; return $ this ; }
This method sets the upload file path

@param string $dir_name The directory where to upload the file
@return \Object $this instance
This method sets the upload file path