From d819b9b0ba08db24a77751061ae285fc11205c2c Mon Sep 17 00:00:00 2001 From: kolaente Date: Tue, 6 Sep 2022 13:02:49 +0200 Subject: [PATCH] fix: don't encode attachment upload file blob as json --- src/services/attachment.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/attachment.ts b/src/services/attachment.ts index ba9eaf28..c76a2e47 100644 --- a/src/services/attachment.ts +++ b/src/services/attachment.ts @@ -52,7 +52,7 @@ export default class AttachmentService extends AbstractService const data = new FormData() for (let i = 0; i < files.length; i++) { // TODO: Validation of file size - data.append('files', new Blob([JSON.stringify(files[i], null, 2)]), files[i].name) + data.append('files', new Blob([files[i]]), files[i].name) } return this.uploadFormData(