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?

  • Welcome to Cardano SE! As a new user be sure to take the Tour.
    – gRebel
    Jan 16, 2022 at 3:57

2 Answers 2


You can loop over the contents of your folder and upload every file individually using curl.


It is not possible to use curl to upload a folder, as it does not support multipart sending.

You might want to see something like Using a Node.js Script to Upload a Folder to a Remote IPFS Node.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.