Skip to content

nsuite v2.3.1


nsuite / ParamsQiniuOSSUploadLocalFile

Interface: ParamsQiniuOSSUploadLocalFile ​

Defined in: UtilsQiniuOSS.ts:64

Properties ​

baseUrl ​

baseUrl: string

Defined in: UtilsQiniuOSS.ts:69


bucket ​

bucket: string

Defined in: UtilsQiniuOSS.ts:70


bucketManager? ​

optional bucketManager?: BucketManager

Defined in: UtilsQiniuOSS.ts:94

Manager reused for the remote comparison; created from config and mac when omitted.


config ​

config: Config

Defined in: UtilsQiniuOSS.ts:65


connectTimeout? ​

optional connectTimeout?: number

Defined in: UtilsQiniuOSS.ts:83

Per-request connect and response wait limits, milliseconds; not a total deadline.


key ​

key: string

Defined in: UtilsQiniuOSS.ts:68


localPath ​

localPath: string

Defined in: UtilsQiniuOSS.ts:67


mac ​

mac: Mac

Defined in: UtilsQiniuOSS.ts:66


maxAttempts? ​

optional maxAttempts?: number

Defined in: UtilsQiniuOSS.ts:81

Whole-file attempts, 1–10 (default 3), in addition to finite SDK endpoint retries.


multipartThreshold? ​

optional multipartThreshold?: number

Defined in: UtilsQiniuOSS.ts:75

File size in bytes at which auto mode selects multipart v2; default 20 MiB.


onProgress? ​

optional onProgress?: (progress) => void

Defined in: UtilsQiniuOSS.ts:87

Reports multipart byte progress and a final completion event.

Parameters ​

progress ​
totalBytes ​

number

uploadedBytes ​

number

Returns ​

void


partSize? ​

optional partSize?: number

Defined in: UtilsQiniuOSS.ts:77

Bytes, from 1 MiB through 1 GiB; default 4 MiB.


putPolicyOptions? ​

optional putPolicyOptions?: PutPolicyOptions

Defined in: UtilsQiniuOSS.ts:71


requestTimeout? ​

optional requestTimeout?: number

Defined in: UtilsQiniuOSS.ts:85

Per-request response wait in ms; falls back to QINIU_HTTP_CLIENT_TIMEOUT.


resumeRecordDir? ​

optional resumeRecordDir?: string

Defined in: UtilsQiniuOSS.ts:79

Only this explicitly supplied directory receives SDK resume records.


skipSameFile? ​

optional skipSameFile?: boolean

Defined in: UtilsQiniuOSS.ts:92

Skips the upload when the remote object has the same size and MD5; default false.


uploadMode? ​

optional uploadMode?: "auto" | "form" | "resume"

Defined in: UtilsQiniuOSS.ts:73

auto uses multipart v2 for files >= multipartThreshold (default 20 MiB).

Released under the Apache-2.0 License.