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