feat: fixing thumbnail
This commit is contained in:
parent
19849e6088
commit
21d06c0e8a
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue