From 2a26b1604272c6ad88ac8c895aaf01bec34ddc3b Mon Sep 17 00:00:00 2001 From: Maksim Sukharev Date: Tue, 12 May 2026 12:04:36 +0200 Subject: [PATCH] fix: add response to upload when assembling chunks Signed-off-by: Maksim Sukharev --- lib/uploader/uploader.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/uploader/uploader.ts b/lib/uploader/uploader.ts index 0f96c43e..3181c79f 100644 --- a/lib/uploader/uploader.ts +++ b/lib/uploader/uploader.ts @@ -599,6 +599,11 @@ export class Uploader { upload.status = UploadStatus.CANCELLED reject(new UploadCancelledError(error)) } else { + // Attach response to the upload object + if ((error as AxiosError)?.response) { + upload.response = (error as AxiosError).response as AxiosResponse + } + upload.status = UploadStatus.FAILED reject(t('Failed to assemble the chunks together')) }