post https://deep-index.moralis.io/api/v2/ipfs/uploadFolder
Upload multiple files to IPFS and place them in a folder directory.
Log in to see full request history
Response
Upload multiple files to IPFS and place them in a folder directory.
xxxxxxxxxx
23import Moralis from 'moralis';
​
try {
const abi = [
{
path: "moralis/logo.jpg",
content: "iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAAApgAAAKYB3X3",
},
];
​
await Moralis.start({
apiKey: 'YOUR_API_KEY',
// ...and any other configuration
});
​
const response = await Moralis.EvmApi.ipfs.uploadFolder({
abi
});
console.log(response?.result);
} catch (e) {
console.error(e);
}
Try It!
to start a request and see the response here! Or choose an example: