public function uploadDir($dir)
	{
		$this->uploadDir = $dir;
		if(! $this->hasTrailingSlash())
		{
			$this->uploadDir .= "/";
		}

		return $this;
	}
public function uploadDir($dir)
	{
		$this->uploadDir = $dir;
		if(! $this->hasTrailingSlash())
		{
			$this->uploadDir .= "/";
		}

		return $this;
	}
public function uploadDir ( $ dir ) { $ this -> uploadDir = $ dir ; if ( ! $ this -> hasTrailingSlash ( ) ) { $ this -> uploadDir .= "/" ; } return $ this ; }
Sets the upload directory
@param string $path
@return FileUploader
Sets the upload directory