mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-28 17:43:47 +00:00
fix: add multipart/form-data header to news media upload request
This commit is contained in:
@@ -66,7 +66,10 @@ export const newsApi = {
|
||||
const response = await apiClient.post<NewsMediaUploadResponse>(
|
||||
'/cabinet/admin/news/media/upload',
|
||||
formData,
|
||||
{ signal },
|
||||
{
|
||||
headers: { 'Content-Type': 'multipart/form-data' },
|
||||
signal,
|
||||
},
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user