Update frontend
This commit is contained in:
@@ -40,7 +40,7 @@ export const saveProductImage = async(url: string, file:File, authToken: string)
|
||||
formData.append("file", file);
|
||||
|
||||
return await fetchData(url, {
|
||||
method: "POST",
|
||||
method: "PUT",
|
||||
headers: {
|
||||
Authorization: `Bearer ${authToken}`,
|
||||
//"Content-Type": "multipart/form-data",
|
||||
|
||||
Reference in New Issue
Block a user