Fix: 이미지 폴더 업로드 api 수정

This commit is contained in:
홍창기 2024-09-22 04:39:50 +09:00
parent 6e38e4e79d
commit 57e83781b8
No known key found for this signature in database
GPG Key ID: 9FF142041B4A91B9

View File

@ -55,7 +55,22 @@ export async function uploadImageFolder(memberId: number, projectId: number, fil
return api
.post(
`/projects/${projectId}/folders/0/images/upload`,
{ files, parentId },
{ folderZip: files, parentId },
{
params: { memberId },
}
)
.then(({ data }) => data)
.catch((error) => {
return Promise.reject(error);
});
}
export async function uploadImageFolderZip(memberId: number, projectId: number, file: File, parentId: number = 0) {
return api
.post(
`/projects/${projectId}/folders/0/images/upload`,
{ folderZip: file, parentId },
{
params: { memberId },
}