Fix: 이미지 폴더 업로드 api 수정
This commit is contained in:
parent
6e38e4e79d
commit
57e83781b8
@ -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 },
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user