const imgBuff = images[0].image;
/* I need to save it as a variable and be passed as an imageFile, instead of saving it */
const fs = require('fs');
fs.writeFile('./image.jpg', Buffer.from(), (err) => {
if (err) throw err;
console.log('The file has been saved!');
});
await uploadImage(imageFile)
const imgBuff = images[0].image;
/* I need to save it as a variable and be passed as an imageFile, instead of saving it */
const fs = require('fs');
fs.writeFile('./image.jpg', Buffer.from(), (err) => {
if (err) throw err;
console.log('The file has been saved!');
});
await uploadImage(imageFile)