I try this, but don’t work:
await Moralis.start({ serverUrl, appId, masterKey })
//await Moralis.initialize(appId, ‘’, masterKey)
const imageData = fs.readFileSync(pathFile /, { encoding: ‘base64’ }/)
if (imageData == undefined) return null
const imageFile = new Moralis.File(‘file.jpg’, { base64: Buffer(imageData).toString(‘base64’) })
await imageFile.saveIPFS()
I have an error: File Public Upload Disabled
Any suggestion?