Hello, I am following :
I have gotten all the code copied over from the images.js section. I’ve added my key and I have all the packages installed.
But when I run node images.js I get the following error:
C:\Users\user\Desktop\IPFS-UPLOAD-BULK\images.js:14
content: data.toString("base64")
^
TypeError: Cannot read properties of undefined (reading 'toString')
at ReadFileContext.callback (C:\Users\user\Desktop\IPFS-UPLOAD-BULK\images.js:14:31)ages.js:14:31)
at FSReqCallback.readFileAfterOpen [as oncomplete] (node:fs:314:13)
Can someone please advise what I need to do to resolve this error. I have a feeling its due to my lack of understanding of fs.readFile().