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) {