Skip to content

Instantly share code, notes, and snippets.

@poolsar42
Last active January 23, 2023 06:49
Show Gist options
  • Save poolsar42/98f58c5d82c5afcce6e6dcb35cdfb34e to your computer and use it in GitHub Desktop.
Save poolsar42/98f58c5d82c5afcce6e6dcb35cdfb34e to your computer and use it in GitHub Desktop.
Uploading large folders to IPFS

Hiya!

Uploading gigantic folders and files to IPFS sometimes could be tricky! But we are going to make it. I tried to write complete instructions on how to do this. But feel free to ask if something isn't going according to plan. 😉

IPFS Desktop

  1. First thing we need to do is to install IPFS Desktop client. Follow the link and choose your option.
  2. Open your IPFS Desktop and wait a bit until it loads.

Configurations

  1. By default IPFS protects you from memory clogging. But it also prevents us from uploading large files! On sidebar on the left go to SETTINGS tab.

Settings

  1. Scroll down to IPFS CONFIG section

Config

  1. Set "GCPeriod" to "10h" (it should be "1h" by default)

GCPeriod

  1. Set "StorageGCWatermark" to 99. And set "StorageMax" to your content size + 15GB (e.g. if your folder size is 50GB set "StorageMax" to "65GB")

StorageMax

  1. Go up to IPFS CONFIG section and hit Save

Save

  1. Yep! Restart your IPFS app. Just close and open it again 😄

That was the hardest part! Let's start uploading 😜

Uploading

  1. Go to FILES tab on your sidebar.

Files

  1. Click +Import button and select your folder.

Import

  1. Wait a bit and you should see folder on your screen. Click on three dots on the right and select Set pinning.

Pin1

  1. Select Local node and Apply

Pin2

  1. Click on three dots again and copy your CID.

CID

  1. Send your CID to us!

This is it! Now it's time for us to retrieve your content from your node! It's like a torrenting. So please don't close your IPFS Desktop app until we upload all your files (we'll pin it to the IPFS network - so when you disconnect, the files will still be available). We'll let you know when it's over. 😊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment