feat: fixing thumbnail

This commit is contained in:
hanif salafi 2025-06-24 13:34:09 +07:00
parent 19849e6088
commit 21d06c0e8a
1 changed files with 4 additions and 4 deletions

View File

@ -173,10 +173,10 @@ export async function createMedia(data: any) {
export async function uploadThumbnail(id: any, data: any) { export async function uploadThumbnail(id: any, data: any) {
const url = `media/upload?id=${id}&operation=thumbnail`; const url = `media/upload?id=${id}&operation=thumbnail`;
// const headers = { const headers = {
// "Content-Type": "multipart/form-data", "Content-Type": "multipart/form-data",
// }; };
return httpPostInterceptor(url, data); return httpPostInterceptor(url, data, headers);
} }
export async function detailSPIT(id: any) { export async function detailSPIT(id: any) {