Options
All
  • Public
  • Public/Protected
  • All
Menu

Class UploadManager

Hierarchy

  • UploadManager

Constructors

constructor

Properties

Private MAX_PARTS

MAX_PARTS: number = 10000

Private MAX_READ_SIZE

MAX_READ_SIZE: number = Number.MAX_SAFE_INTEGER

Private Readonly client

Private numberOfRetries

numberOfRetries: object

Type declaration

  • [key: string]: number

Private numberOfSingleUploadRetry

numberOfSingleUploadRetry: number = 0

Private Readonly options

options: UploadOptions

Private uploadSize

uploadSize: object

Type declaration

  • [key: string]: number

Accessors

logger

Methods

Private multiUpload

Private pushUploadParts

Private shouldUseMultipartUpload

Private singleUpload

Private triggerUploadPart

upload

  • Initiates a new upload request. The upload manager will decide whether to use a single PutObject call or multi-part uploads depending on the UploadOptions specified.

    Note, if a multi-part upload attempt fails, the UploadManager will attempt to abort the upload to avoid leaving partially complete uploads and parts (unless explicitly disabled via uploadOptions).

    throws

    OciError if the upload fails for any reason.

    Parameters

    Returns Promise<UploadResponse>

    The UploadResponse.

Static Private composeRequestDetails

Object literals

Private uploadRetryConfiguration

uploadRetryConfiguration: object

retryConfiguration

retryConfiguration: RetryConfigurationDetails = NoRetryConfigurationDetails

Static Private defaultUploadOptions

defaultUploadOptions: object

allowedMemoryUsage

allowedMemoryUsage: number = 5 * 20 * 1024 * 1024

disableBufferingForFiles

disableBufferingForFiles: true = true

enforceMD5

enforceMD5: false = false

isDisableAutoAbort

isDisableAutoAbort: false = false

maxConcurrentUploads

maxConcurrentUploads: number = 5

partSize

partSize: number = 20 * 1024 * 1024