public function move()
	{
		// Make sure the filename is unique if makeFilenameUnique is set to true
		if($this->makeFilenameUnique)
		{
			$this->getUniqueFilename();
		}
		if($this->_validate())
		{
			// Validation passed so create any directories and move the tmp file to the specified location.
			$this->_createDirs();
			if($this->file->isValid())
			{
				// This will also perform some validations on the upload.
				$this->file->move($this->uploadDir, $this->filename);
			}
			else
			{
				throw new Exception($this->file->getErrorMessage());
			}
		}

		return $this->getUploadPath();
	}
public function move()
	{
		// Make sure the filename is unique if makeFilenameUnique is set to true
		if($this->makeFilenameUnique)
		{
			$this->getUniqueFilename();
		}
		if($this->_validate())
		{
			// Validation passed so create any directories and move the tmp file to the specified location.
			$this->_createDirs();
			if($this->file->isValid())
			{
				// This will also perform some validations on the upload.
				$this->file->move($this->uploadDir, $this->filename);
			}
			else
			{
				throw new Exception($this->file->getErrorMessage());
			}
		}

		return $this->getUploadPath();
	}
public function move ( ) { // Make sure the filename is unique if makeFilenameUnique is set to true if ( $ this -> makeFilenameUnique ) { $ this -> getUniqueFilename ( ) ; } if ( $ this -> _validate ( ) ) { // Validation passed so create any directories and move the tmp file to the specified location. $ this -> _createDirs ( ) ; if ( $ this -> file -> isValid ( ) ) { // This will also perform some validations on the upload. $ this -> file -> move ( $ this -> uploadDir , $ this -> filename ) ; } else { throw new Exception ( $ this -> file -> getErrorMessage ( ) ) ; } } return $ this -> getUploadPath ( ) ; }
Validates and moves the uploaded file to it's destination
@return String
Validates and moves the uploaded file to it s destination