1

How to upload folder to IPFS using blockfrost.

able to upload a file using the following, but not able to upload a folder

curl "https://ipfs.blockfrost.io/api/v0/ipfs/add" \
  -X POST \
  -H "project_id: $PROJECT_ID" \
  -F "file=@./README.md"

here is the full documentation

any solutions?

Adharsh Chottu
  • 295
  • 2
  • 4
  • 18

1 Answers1

0

To upload a folder to IPFS using Blockfrost, you can compress the folder as a zip or tar file and upload it using the same curl command that you used to upload a file.