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')) }