added path join to add filename to read file sync
Build and Push Image / build-and-push (push) Successful in 1m8s

This commit is contained in:
2026-04-29 22:27:05 -07:00
parent 8ad813e4f4
commit e0f5d7f3a5
+1 -1
View File
@@ -109,7 +109,7 @@ const applyImageToItem = async (itemId, localImagePath, fileName, token) => {
} }
const formData = new FormData(); 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`, { const response = await fetch(`${koillectionBaseUrl}/items/${itemId}/image`, {
method: 'POST', method: 'POST',
headers: { headers: {