From aaaf71edd1667625f91284df8d5d0c4f9a4ce226 Mon Sep 17 00:00:00 2001 From: jinho222 Date: Sun, 19 May 2024 12:33:22 +0900 Subject: [PATCH] fix: accept text/plain when upload file --- apps/web-client/src/lib/api-v2/customApi.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apps/web-client/src/lib/api-v2/customApi.ts b/apps/web-client/src/lib/api-v2/customApi.ts index fdd5117b..1ff78fda 100644 --- a/apps/web-client/src/lib/api-v2/customApi.ts +++ b/apps/web-client/src/lib/api-v2/customApi.ts @@ -10,6 +10,9 @@ export class CustomApi { method: 'POST', url: '/files', formData: { file }, + headers: { + Accept: 'text/plain;charset=UTF-8', + }, }); } }