From 21d06c0e8acdb2f236d2c825820eae8498c672fc Mon Sep 17 00:00:00 2001 From: hanif salafi Date: Tue, 24 Jun 2025 13:34:09 +0700 Subject: [PATCH] feat: fixing thumbnail --- service/content/content.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/service/content/content.ts b/service/content/content.ts index 320ddeb6..7f5f8e48 100644 --- a/service/content/content.ts +++ b/service/content/content.ts @@ -173,10 +173,10 @@ export async function createMedia(data: any) { export async function uploadThumbnail(id: any, data: any) { const url = `media/upload?id=${id}&operation=thumbnail`; - // const headers = { - // "Content-Type": "multipart/form-data", - // }; - return httpPostInterceptor(url, data); + const headers = { + "Content-Type": "multipart/form-data", + }; + return httpPostInterceptor(url, data, headers); } export async function detailSPIT(id: any) {