Skip to content

Commit fec7d7d

Browse files
committed
companion: rename S3 upload functions to clarify which type of upload they do
cc @ifedapoolarewaju
1 parent 1463ee7 commit fec7d7d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@uppy/companion/src/server/Uploader.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class Uploader {
236236
}
237237

238238
if (protocol === PROTOCOLS.s3Multipart && !this.s3Upload) {
239-
return this.uploadS3()
239+
return this.uploadS3Multipart()
240240
}
241241
// @TODO disabling parallel uploads and downloads for now
242242
// if (!this.options.endpoint) return
@@ -492,7 +492,7 @@ class Uploader {
492492
/**
493493
* Upload the file to S3 while it is still being downloaded.
494494
*/
495-
uploadS3 () {
495+
uploadS3Multipart () {
496496
const file = createTailReadStream(this.path, {
497497
tail: true
498498
})
@@ -501,13 +501,13 @@ class Uploader {
501501
file.close()
502502
})
503503

504-
return this._uploadS3(file)
504+
return this._uploadS3MultipartStream(file)
505505
}
506506

507507
/**
508508
* Upload a stream to S3.
509509
*/
510-
_uploadS3 (stream) {
510+
_uploadS3MultipartStream (stream) {
511511
if (!this.options.s3) {
512512
this.emitError(new Error('The S3 client is not configured on this companion instance.'))
513513
return

0 commit comments

Comments
 (0)