chore(storage): use current qiniu resumable options

This commit is contained in:
WuYongJie 2026-07-14 17:00:02 +08:00
parent 9ae3dad2d0
commit c1215a4617
2 changed files with 4 additions and 2 deletions

View File

@ -31,7 +31,9 @@ jest.mock('qiniu', () => ({
ResumeUploader: jest.fn().mockImplementation(() => ({
putFileV2: mockQiniuResumePutFileV2,
})),
PutExtra: jest.fn().mockImplementation(() => ({})),
PutExtra: {
create: jest.fn().mockImplementation(() => ({})),
},
},
rs: {
BucketManager: jest.fn().mockImplementation(() => ({

View File

@ -701,7 +701,7 @@ function createQiniuStorageAdapter(): ObjectStorageAdapter {
const putPolicy = new sdk.rs.PutPolicy({
scope: `${bucketName}:${objectKey}`,
})
const putExtra = new sdk.resume_up.PutExtra()
const putExtra = sdk.resume_up.PutExtra.create()
putExtra.mimeType = contentType
const response = await resumeUploader.putFileV2(