library/Services/Library/FileUploader.php
public function uploadFile($sFileIndex, $sLocation, $blOverwrite = true)
    {
        $aFileInfo = $this->_getFileInfo($sFileIndex);

        if (!$this->_checkFile($aFileInfo)) {
            throw new Exception("File with index '$sFileIndex' does not exist or error occurred while downloading it");
        }

        return $this->_moveUploadedFile($aFileInfo, $sLocation, $blOverwrite);
    }
public function uploadFile($sFileIndex, $sLocation, $blOverwrite = true)
    {
        $aFileInfo = $this->_getFileInfo($sFileIndex);

        if (!$this->_checkFile($aFileInfo)) {
            throw new Exception("File with index '$sFileIndex' does not exist or error occurred while downloading it");
        }

        return $this->_moveUploadedFile($aFileInfo, $sLocation, $blOverwrite);
    }
public function uploadFile ( $ sFileIndex , $ sLocation , $ blOverwrite = true ) { $ aFileInfo = $ this -> _getFileInfo ( $ sFileIndex ) ; if ( ! $ this -> _checkFile ( $ aFileInfo ) ) { throw new Exception ( "File with index '$sFileIndex' does not exist or error occurred while downloading it" ) ; } return $ this -> _moveUploadedFile ( $ aFileInfo , $ sLocation , $ blOverwrite ) ; }
Uploads file to given location.

@param string $sFileIndex  File index
@param string $sLocation   Location where to put uploaded file
@param bool   $blOverwrite Whether to overwrite existing file

@throws Exception Throws exception if file with given index does not exist.

@return bool Whether upload succeeded
Uploads file to given location .