From 7b55bb1713dea7899e02e6ebf98119ca6cc2a17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=B0=BD=EA=B8=B0?= Date: Sun, 22 Sep 2024 13:16:46 +0900 Subject: [PATCH] =?UTF-8?q?Fix:=20=EB=B9=8C=EB=93=9C=20=EC=97=90=EB=9F=AC?= =?UTF-8?q?=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/api/imageApi.ts | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/frontend/src/api/imageApi.ts b/frontend/src/api/imageApi.ts index 7c315ac..92fb8de 100644 --- a/frontend/src/api/imageApi.ts +++ b/frontend/src/api/imageApi.ts @@ -60,10 +60,10 @@ export async function uploadImageFolder(memberId: number, projectId: number, fil return api .post( `/projects/${projectId}/folders/${0}/images/upload`, - { folderZip: files, parentId } - // { - // params: { memberId }, - // } + { folderZip: files, parentId }, + { + params: { memberId }, + } ) .then(({ data }) => data) .catch((error) => { @@ -83,13 +83,9 @@ export async function uploadImageFolderZip(memberId: number, projectId: number, // formData.append('parentId', blob); return api - .post( - `/projects/${projectId}/folders/${0}/images/upload`, - formData - // { - // params: { memberId }, - // } - ) + .post(`/projects/${projectId}/folders/${0}/images/upload`, formData, { + params: { memberId }, + }) .then(({ data }) => data) .catch((error) => { return Promise.reject(error);