Getting error while upload file to IPFS

When trying to upload image to IPFS i was getting

core.js:6456 ERROR Error: Uncaught (in promise): ParseError: 130 File upload by public is disabled.
Error: File upload by public is disabled.
    at handleError (moralis.js:22435)
    at ZoneDelegate.invoke (zone.js:372)
    at Object.onInvoke (core.js:28673)
    at ZoneDelegate.invoke (zone.js:371)
    at (zone.js:134)
    at zone.js:1276
    at ZoneDelegate.invokeTask (zone.js:406)
    at Object.onInvokeTask (core.js:28660)
    at ZoneDelegate.invokeTask (zone.js:405)
    at Zone.runTask (zone.js:178)
    at resolvePromise (zone.js:1213)
    at zone.js:1120
    at asyncGeneratorStep (asyncToGenerator.js:6)
    at _throw (asyncToGenerator.js:29)
    at ZoneDelegate.invoke (zone.js:372)
    at Object.onInvoke (core.js:28673)

Hey @Aman

Take a look at

Sorry but but i am trying to upload image in IPFS using angular not on cloud function.
Here is my code

Moralis.serverURL = url'; 

await Moralis.Web3.enable();

async upload()

const object = {
    "key" : "value"
const file = new Moralis.File("file.json", {base64 : btoa(JSON.stringify(object))});
await file.saveIPFS();

Are you logged in to Moralis when you try to execute that code?