turned buffer into blob
Build and Push Image / build-and-push (push) Successful in 1m7s

This commit is contained in:
2026-04-29 23:06:09 -07:00
parent 1de641a2ef
commit f75918bac3
+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(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`, { const response = await fetch(`${koillectionBaseUrl}/items/${itemId}/image`, {
method: 'POST', method: 'POST',
headers: { headers: {