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?
optionalbucketManager?: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?
optionalconnectTimeout?: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?
optionalmaxAttempts?:number
Defined in: UtilsQiniuOSS.ts:81
Whole-file attempts, 1–10 (default 3), in addition to finite SDK endpoint retries.
multipartThreshold?
optionalmultipartThreshold?:number
Defined in: UtilsQiniuOSS.ts:75
File size in bytes at which auto mode selects multipart v2; default 20 MiB.
onProgress?
optionalonProgress?: (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?
optionalpartSize?:number
Defined in: UtilsQiniuOSS.ts:77
Bytes, from 1 MiB through 1 GiB; default 4 MiB.
putPolicyOptions?
optionalputPolicyOptions?:PutPolicyOptions
Defined in: UtilsQiniuOSS.ts:71
requestTimeout?
optionalrequestTimeout?:number
Defined in: UtilsQiniuOSS.ts:85
Per-request response wait in ms; falls back to QINIU_HTTP_CLIENT_TIMEOUT.
resumeRecordDir?
optionalresumeRecordDir?:string
Defined in: UtilsQiniuOSS.ts:79
Only this explicitly supplied directory receives SDK resume records.
skipSameFile?
optionalskipSameFile?:boolean
Defined in: UtilsQiniuOSS.ts:92
Skips the upload when the remote object has the same size and MD5; default false.
uploadMode?
optionaluploadMode?:"auto"|"form"|"resume"
Defined in: UtilsQiniuOSS.ts:73
auto uses multipart v2 for files >= multipartThreshold (default 20 MiB).