Parse error default need to solve, saving to IPFS

error = new _ParseError.default(errorJSON.code, errorJSON.error);
^

ParseError: File upload by public is disabled

and how to authenticate if it is reequired.
I have connected with SDK using node,js then what else is required

Not working in this way also

Can we see your upload code. Are you using your masterKey?

const Moralis = require(“moralis/node”);

const express = require(‘express’);

const mongoose = require(‘mongoose’);

const multer = require(‘multer’);

let storage = multer.memoryStorage()

const upload = multer({storage: storage , dest: ‘uploads/’});
const router = express.Router();

const serverUrl = “…”;

const appId = “…”;

const masterkey = “…”;

Moralis.start({ serverUrl, appId, masterkey});

router.post(’/get_and_convert’,upload.single(‘file’), async (req,res) => {

const imagestring = await uploadimage(req.file);

console.log(imagestring);

const imagefiles = new transaction({

     image : imagestring,

})

try {

    const dataToSave = await imagefiles.save();

    res.status(200).json(dataToSave)

}

catch (error) {

    res.status(400).json({ message: error.message })

}

})

uploadimage = async(fileobj) => {

const fileType = fileobj.mimetype;

const value = fileType.substring(fileType.lastIndexOf(`/`) + 1);

const imageFile = new Moralis.File(`myNFT.${value}`, {base64 : fileobj.buffer.toString("base64")});

await imageFile.saveIPFS(null,{useMasterKey: true});

imageURI = imageFile.ipfs();

console.log(imageURI);

}

await imageFile.saveIPFS(null,{useMasterKey: true});

error is at this line, error is ParseError: File upload by public is disabled.

there is a solution here:

I’m closing this thread.