added path join to add filename to read file sync
Build and Push Image / build-and-push (push) Successful in 1m8s
Build and Push Image / build-and-push (push) Successful in 1m8s
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(localImagePath), filename);
|
||||
formData.append('image', fs.readFileSync(path.join(localImagePath, fileName)), filename);
|
||||
const response = await fetch(`${koillectionBaseUrl}/items/${itemId}/image`, {
|
||||
method: 'POST',
|
||||
headers: {
|
||||
|
||||
Reference in New Issue
Block a user