[SOLVED] Uploading to IPFS: File too large Error

Hey, I’m using the new upload folder to IPFS API- https://docs.moralis.io/docs/how-to-upload-a-folder-to-ipfs

I’m unable to upload any file larger than 10MB. Earlier the ipfs file size limits used to be 1GB on Moralis as specified in the documentation. What is the limit now? I can’t find it anywhere

I don’t know the exact limit for uploadFolder, how do you try to upload it?
sometimes it is a setting in local client for the uploaded size

I use the exact code in the example here- https://docs.moralis.io/docs/how-to-upload-a-folder-to-ipfs

I’m running an express node.js server and the file upload happens through there. On the client, I’m converting the file to base64 and sending it to my backend for uploading on ipfs.

Can you please find out and let me know the limit for uploadFolder?

you have your own express server? then there could be an implicit limit for that express server too

one assumption could be that the limit is close to 64MB for the base64 data that is sent (that is not the same as the size of the binary file)

Oh, I figured it out finally. There is a maxUploadSize parameter that defaults to 20mb in a parse server. Needed to change that.


1 Like