function MoveTo($targetFolder, $targetFilename = '')
    {
        if (!$targetFilename)
            $targetFilename = $this->Filename();
        
        $destination = Path::Combine($targetFolder, $targetFilename);
        $result = @move_uploaded_file($this->TempPath(), $destination);
        if (!$result)
            throw new \Exception('Uploaded file could not be moved to target');
    }
function MoveTo($targetFolder, $targetFilename = '')
    {
        if (!$targetFilename)
            $targetFilename = $this->Filename();
        
        $destination = Path::Combine($targetFolder, $targetFilename);
        $result = @move_uploaded_file($this->TempPath(), $destination);
        if (!$result)
            throw new \Exception('Uploaded file could not be moved to target');
    }
function MoveTo ( $ targetFolder , $ targetFilename = '' ) { if ( ! $ targetFilename ) $ targetFilename = $ this -> Filename ( ) ; $ destination = Path :: Combine ( $ targetFolder , $ targetFilename ) ; $ result = @ move_uploaded_file ( $ this -> TempPath ( ) , $ destination ) ; if ( ! $ result ) throw new \ Exception ( 'Uploaded file could not be moved to target' ) ; }
moves the temporary, uploaded file to another destination
@param string $targetFolder The target folder
@param string $targetFilename If omitted, the user given file name is taken
moves the temporary uploaded file to another destination