<p>You can <a href="https://askubuntu.com/a/315338">loop over the contents of your folder</a> and upload every file individually using <code>curl</code>.</p>

CC BY-SA 4.0
2022-10-13T14:15:36.597Z
2022-10-13T14:15:36.597Z
eddex
<p>It is not possible to use <code>curl</code> to upload a folder, as it does not support multipart sending.</p>
<p>You might want to see something like <a href="https://medium.com/cladular/using-a-node-js-script-to-upload-a-folder-to-a-remote-ipfs-node-255fa9e3b766" rel="nofollow noreferrer">Using a Node.js Script to Upload a Folder to a Remote IPFS Node</a>.</p>

CC BY-SA 4.0
2022-01-15T14:39:21.003Z
2022-01-15T14:39:21.003Z
Marek Mahut - StakeNuts
<p>How to upload folder to IPFS using blockfrost.</p>
<p>able to upload a file using the following, but not able to upload a folder</p>
<pre><code>curl &quot;https://ipfs.blockfrost.io/api/v0/ipfs/add&quot; \
  -X POST \
  -H &quot;project_id: $PROJECT_ID&quot; \
  -F &quot;file=@./README.md&quot;
</code></pre>
<p>here is the full <a href="https://docs.blockfrost.io/#tag/IPFS-Add/paths/%7E1ipfs%7E1add/post" rel="nofollow noreferrer">documentation</a></p>
<p>any solutions?</p>

CC BY-SA 4.0
2022-01-16T03:57:39.943Z
Welcome to Cardano SE! As a new user be sure to take the [Tour].
gRebel
<blockfrost><ipfs>
upload folder to ipfs using blockfrost
# upload folder to ipfs using blockfrost

(Asked by: username_0 on 2022-01-15)

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?

**Tags:** blockfrost, ipfs
> **Comments:**
> **username_1**: Welcome to Cardano SE! As a new user be sure to take the [Tour].  

---

## 2 answers

### Answer by username_2 on 2022-10-13. Score: 1

You can [loop over the contents of your folder](https://askubuntu.com/a/315338) and upload every file individually using `curl`.


---

### Answer by username_3 on 2022-01-15. Score: 0

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](https://medium.com/cladular/using-a-node-js-script-to-upload-a-folder-to-a-remote-ipfs-node-255fa9e3b766).


---

