We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e444b7 commit aca9fb8Copy full SHA for aca9fb8
src/upload/resume.ts
@@ -83,7 +83,7 @@ export default class Resume extends Base {
83
await Promise.all(uploadChunks)
84
mkFileResponse = await this.mkFileReq()
85
} catch (error) {
86
- // uploadId 无效,上传参数有误(多由于本地存储信息的 uploadId 失效
+ // uploadId 无效,上传参数有误(多由于本地存储信息的 uploadId 失效)
87
if (error instanceof QiniuRequestError && (error.code === 612 || error.code === 400)) {
88
utils.removeLocalFileInfo(localKey, this.logger)
89
}
@@ -121,6 +121,11 @@ export default class Resume extends Base {
121
return
122
123
124
+ // 有缓存但是没有使用则调整标记
125
+ if (info) {
126
+ info.fromCache = false
127
+ }
128
+
129
const onProgress = (data: Progress) => {
130
this.updateChunkProgress(data.loaded, index)
131
0 commit comments