Skip to content

Commit 2a26b16

Browse files
committed
fix: add response to upload when assembling chunks
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
1 parent 398a3cd commit 2a26b16

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

lib/uploader/uploader.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,11 @@ export class Uploader {
599599
upload.status = UploadStatus.CANCELLED
600600
reject(new UploadCancelledError(error))
601601
} else {
602+
// Attach response to the upload object
603+
if ((error as AxiosError)?.response) {
604+
upload.response = (error as AxiosError).response as AxiosResponse
605+
}
606+
602607
upload.status = UploadStatus.FAILED
603608
reject(t('Failed to assemble the chunks together'))
604609
}

0 commit comments

Comments
 (0)