nsuite / uploadLocalFileToQiniuOSS
Function: uploadLocalFileToQiniuOSS()
uploadLocalFileToQiniuOSS(
payload):Promise<ReturnQiniuOSSUploadLocalFile>
Defined in: UtilsQiniuOSS.ts:807
Uploads one local file to Qiniu OSS.
Parameters
payload
The upload credentials, local file, object key, and bucket.
Returns
Promise<ReturnQiniuOSSUploadLocalFile>
The stored object metadata and its public URL.
Remarks
Defaults to multipart v2 at 20 MiB with 4 MiB parts. Only an explicit resumeRecordDir enables persistent records. maxAttempts bounds whole-file attempts in addition to finite SDK endpoint retries. QINIU_HTTP_CLIENT_TIMEOUT supplies the response wait in milliseconds (default 120000); connectTimeout defaults to 10000. These are per-request limits, not a total upload deadline. skipSameFile compares the remote size and MD5 before uploading; objects uploaded in parts expose no md5 and are therefore uploaded again. Skipped uploads do not call onProgress.