Update file upload URL in API controller
This commit is contained in:
parent
9d808cc55d
commit
682d8724be
1 changed files with 1 additions and 1 deletions
|
|
@ -352,7 +352,7 @@ export async function uploadFile(
|
||||||
): Promise<AxiosResponse<UploadFileTypeAPI>> {
|
): Promise<AxiosResponse<UploadFileTypeAPI>> {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", file);
|
formData.append("file", file);
|
||||||
return await api.post(`${BASE_URL_API}upload/${id}`, formData);
|
return await api.post(`${BASE_URL_API}files/upload/${id}`, formData);
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function postCustomComponent(
|
export async function postCustomComponent(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue