This commit is contained in:
@@ -109,7 +109,7 @@ const applyImageToItem = async (itemId, localImagePath, fileName, token) => {
|
|||||||
}
|
}
|
||||||
|
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append('image', fs.readFileSync(path.join(localImagePath, fileName)), filename);
|
formData.append('image', fs.readFileSync(path.join(localImagePath, fileName)), fileName);
|
||||||
const response = await fetch(`${koillectionBaseUrl}/items/${itemId}/image`, {
|
const response = await fetch(`${koillectionBaseUrl}/items/${itemId}/image`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
|
|||||||
Reference in New Issue
Block a user