src/Webiny/BackupService/Lib/S3.php
public function upload($sourceFile, $destinationFile)
    {
        Service::$log->msg('Upload to S3 started: ' . $sourceFile);
        $destinationFile = rtrim($this->s3Config->RemotePath, '/') . '/' . $destinationFile;
        $this->s3Instance->multipartUpload($this->s3Config->Bucket, $destinationFile, $sourceFile, 3);
        Service::$log->msg('Upload ended');

        return $destinationFile;
    }
public function upload($sourceFile, $destinationFile)
    {
        Service::$log->msg('Upload to S3 started: ' . $sourceFile);
        $destinationFile = rtrim($this->s3Config->RemotePath, '/') . '/' . $destinationFile;
        $this->s3Instance->multipartUpload($this->s3Config->Bucket, $destinationFile, $sourceFile, 3);
        Service::$log->msg('Upload ended');

        return $destinationFile;
    }
public function upload ( $ sourceFile , $ destinationFile ) { Service :: $ log -> msg ( 'Upload to S3 started: ' . $ sourceFile ) ; $ destinationFile = rtrim ( $ this -> s3Config -> RemotePath , '/' ) . '/' . $ destinationFile ; $ this -> s3Instance -> multipartUpload ( $ this -> s3Config -> Bucket , $ destinationFile , $ sourceFile , 3 ) ; Service :: $ log -> msg ( 'Upload ended' ) ; return $ destinationFile ; }
Upload the give file to S3.

@param string $sourceFile Path to the source file.
@param string $destinationFile Name of the file on S3.

@return string
Upload the give file to S3 .