I’'m getting this error when trying to upload image to ipfs using web3.strge js SDK
here is my code
client
const web3Client = new Web3Storage({ token: "eyJhbGciOi …})
upload function
const uploadToIpfs = async (file) => { // console.log("i'm file from hook", file) const rootCid = await web3Client.put(file) return rootCid }
I’m passing file as prop
I’ve tried to print file to console but it returns my selected file see here
What could be reason of this error ?