We See the Web3

Add a file to MFS
We See the Web3
Jun 18
Now that we have files accessible in the browser, let's see how to add them to IPFS. To add a file to IPFS, we can use the MFS files.write method like so:await ipfs.files.write(path, content, [options]) The MFS files.write method can accept file content in the form of a Buffer, ReadableStream, PullStream, Blob (only in the browser), or string path to a file (only in Node.js). Since file objects in the browser are a kind of Blob, we're good to go! Even though the file object in the b...
ParagraphParagraph

We See the Web3

Written by
We See the Web3
Subscribe

2025 Paragraph Technologies Inc

PopularTrendingPrivacyTermsHome
Search...Ctrl+K
Subscribe