chore: fix add product with video

This commit is contained in:
2026-02-22 13:26:15 +01:00
parent 9ff3a6bd9e
commit 2d9bec7392
4 changed files with 18 additions and 10 deletions
+2 -1
View File
@@ -343,6 +343,7 @@ export const createProductAdmin = async (formData: FormData) => {
formData,
{
headers: { "Content-Type": "multipart/form-data" },
timeout: 120000,
},
);
return { success: true, data: data.data, message: data.message };
@@ -460,7 +461,7 @@ export const uploadProductMediaAdmin = async (
const { data } = await apiClient.post(
`${V2}/admin/protected/products/${productId}/media`,
fd,
{ headers: { "Content-Type": "multipart/form-data" } },
{ headers: { "Content-Type": "multipart/form-data" }, timeout: 120000 },
);
return { success: true, media: data.media, message: data.message };
};