updates
This commit is contained in:
@@ -322,14 +322,10 @@ const systemSettingsService = {
|
||||
const formData = new FormData();
|
||||
formData.append('image', file);
|
||||
|
||||
// Don't set Content-Type header - let the browser set it with the correct boundary
|
||||
const response = await apiClient.post<UploadLogoResponse>(
|
||||
'/api/admin/system-settings/company/logo',
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
}
|
||||
formData
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
@@ -343,14 +339,10 @@ const systemSettingsService = {
|
||||
const formData = new FormData();
|
||||
formData.append('image', file);
|
||||
|
||||
// Don't set Content-Type header - let the browser set it with the correct boundary
|
||||
const response = await apiClient.post<UploadFaviconResponse>(
|
||||
'/api/admin/system-settings/company/favicon',
|
||||
formData,
|
||||
{
|
||||
headers: {
|
||||
'Content-Type': 'multipart/form-data',
|
||||
},
|
||||
}
|
||||
formData
|
||||
);
|
||||
return response.data;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user