chore(storage): use current qiniu resumable options
This commit is contained in:
parent
9ae3dad2d0
commit
c1215a4617
@ -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(() => ({
|
||||
|
||||
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user