source/Application/Model/File.php
protected function _uploadFile($sSource, $sTarget)
    {
        $blDone = move_uploaded_file($sSource, $sTarget);

        if ($blDone) {
            $blDone = @chmod($sTarget, 0644);
        }

        return $blDone;
    }
protected function _uploadFile($sSource, $sTarget)
    {
        $blDone = move_uploaded_file($sSource, $sTarget);

        if ($blDone) {
            $blDone = @chmod($sTarget, 0644);
        }

        return $blDone;
    }
protected function _uploadFile ( $ sSource , $ sTarget ) { $ blDone = move_uploaded_file ( $ sSource , $ sTarget ) ; if ( $ blDone ) { $ blDone = @ chmod ( $ sTarget , 0644 ) ; } return $ blDone ; }
Moves file from source to target and changes file mode.
Returns true on success.

@param string $sSource Source filename
@param string $sTarget Target filename

@return bool
Moves file from source to target and changes file mode . Returns true on success .