浏览代码

companion: rename S3 upload functions to clarify which type of upload they do

cc @ifedapoolarewaju
Renée Kooi 5 年之前
父节点
当前提交
fec7d7db3a
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      packages/@uppy/companion/src/server/Uploader.js

+ 4 - 4
packages/@uppy/companion/src/server/Uploader.js

@@ -236,7 +236,7 @@ class Uploader {
       }
 
       if (protocol === PROTOCOLS.s3Multipart && !this.s3Upload) {
-        return this.uploadS3()
+        return this.uploadS3Multipart()
       }
       // @TODO disabling parallel uploads and downloads for now
       // if (!this.options.endpoint) return
@@ -492,7 +492,7 @@ class Uploader {
   /**
    * Upload the file to S3 while it is still being downloaded.
    */
-  uploadS3 () {
+  uploadS3Multipart () {
     const file = createTailReadStream(this.path, {
       tail: true
     })
@@ -501,13 +501,13 @@ class Uploader {
       file.close()
     })
 
-    return this._uploadS3(file)
+    return this._uploadS3MultipartStream(file)
   }
 
   /**
    * Upload a stream to S3.
    */
-  _uploadS3 (stream) {
+  _uploadS3MultipartStream (stream) {
     if (!this.options.s3) {
       this.emitError(new Error('The S3 client is not configured on this companion instance.'))
       return