I am using NodeJS and Multer to upload a file and I am getting this error. Please help me to solve it out. Here is my code:
const fileType = req.file.mimetype;
const value = fileType.substring(fileType.lastIndexOf(’/’) + 1);
const nftImage = new Moralis.File(
Please help me to solve it out and provide a a documentation too to upload NFT images to IPFS and save data to moralis.