Moralis mutable file system ipfs

I understand that the IPFS client has a concept of a mutable file system (MFS) that allows you to manage files similarly to a directory on any computer, eventhough under the hood it is immutable.

From reading the moralis docs it doesnโ€™t appear that the SDK supports this feature. Can this be added to moralis or is there a way to integrate the logic from the ipfs library to achieve this?

https://docs.ipfs.io/concepts/file-systems/#mutable-file-system-mfs

How are you implementing IPFS on the Moralis side?

Currently I am instantiating a Moralis.File and then calling the saveIPFS() method.

const moralisZipFile = new Moralis.File(`Archive.zip`, { base64: btoa(encryptedZipFile) });
await moralisZipFile.saveIPFS({ useMasterKey: true });
const backupLink = moralisZipFile.ipfs();

I am not sure how else to access IPFS as this is the only way it is explained in the docs.

you can upload a folder now to IPFS too with the API.

you can propose on roadmap.moralis.io this mutable file system functionality, we donโ€™t have it now

Ok thank you. I have posted a suggestion on the roadmap.

1 Like

What happened to the suggestion? did they went through with it?

The roadmap is a bit different so only planned or in-progressed/live features are there now.

1 Like