function moveUploadedFile($dest, $fileName = '')
    {
        if ($dest != ''  && substr($dest, -1) != '/') {
            $dest .= '/';
        }
        $fileName = ($fileName != '') ? $fileName : basename($this->_value['name']);
        if (move_uploaded_file($this->_value['tmp_name'], $dest . $fileName)) {
            return true;
        } else {
            return false;
        }
    }
function moveUploadedFile($dest, $fileName = '')
    {
        if ($dest != ''  && substr($dest, -1) != '/') {
            $dest .= '/';
        }
        $fileName = ($fileName != '') ? $fileName : basename($this->_value['name']);
        if (move_uploaded_file($this->_value['tmp_name'], $dest . $fileName)) {
            return true;
        } else {
            return false;
        }
    }
function moveUploadedFile ( $ dest , $ fileName = '' ) { if ( $ dest != '' && substr ( $ dest , - 1 ) != '/' ) { $ dest .= '/' ; } $ fileName = ( $ fileName != '' ) ? $ fileName : basename ( $ this -> _value [ 'name' ] ) ; if ( move_uploaded_file ( $ this -> _value [ 'tmp_name' ] , $ dest . $ fileName ) ) { return true ; } else { return false ; } }
Moves an uploaded file into the destination

@param    string  Destination directory path
@param    string  New file name
@access   public
@return   bool    Whether the file was moved successfully
Moves an uploaded file into the destination