# Uploading ERC1155 Data to IPFS

If you choose to deploy your Multi-Token Collection via an IPFS URL instead of uploading it directly, you can follow this guide to ensure you are doing it right!\
\
This guide goes into detail, specifically on how to upload your a Multi-Token Collection via an IPFS URL.\
\
**Step 1:** Create an account on <https://nft.storage/>\
**Step 2:** Download the NFTUP Desktop Application: <https://nft.storage/docs/how-to/nftup/>\
**Step 3:** Prepare your Token Image for upload.

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2FUT2SK9FZQzAYUxPo8rTa%2Fimage.png?alt=media&#x26;token=6e28b861-d362-44d8-9591-37a1af9655b4" alt=""><figcaption><p>Floki Token Logo Example</p></figcaption></figure>

It is important that you use a .png format before uploading these images. If your images are currently .jpg, you can use the tool below to convert it to a proper.png format.

{% embed url="<https://jpg2png.com/>" %}

***If you don't use the .png format there is a risk your images will not appear properly!***

**Step 4:** Uploading Your Image.

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2FOQT1Fn5eLcEJ1YIXGNhd%2Fimage.png?alt=media&#x26;token=0f181542-1be1-4804-83e6-7cc612202de5" alt=""><figcaption></figcaption></figure>

Drag and drop your image for upload.

You might be asked to enter an API key, if you are you can create it with the link below.

API Key Creation Page: <https://nft.storage/manage/>\
\
**Step 5:** Click on the Gateway URL

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2FCMrrYLNXOTUTriIo43pW%2Fimage.png?alt=media&#x26;token=d07d11a0-a6fb-4e80-85a8-e1818e4fb25d" alt=""><figcaption><p>Upload Success Screen</p></figcaption></figure>

Once your image is uploaded, **click on the Gateway URL** which will open up your browser.

**DO NOT CLOSE NFTUP JUST YET AS YOU WILL NEED IT LATER ON.**

**Step 6:** Click on the Image Name

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2F5ik7jaYYQqePVOP7i0r3%2Fimage.png?alt=media&#x26;token=74915715-654c-43b5-a021-b6fca3b4015d" alt=""><figcaption><p>IPFS Directory Screen on Chrome</p></figcaption></figure>

Once your brower is open **Click on the Image Name** highlighted in the image above.&#x20;

This will open up another tab with your image visible on the screen.

**Step 7:** Copy the last part of the URL.

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2Fc8LbcfVSSEeDa49ujiSf%2Fimage.png?alt=media&#x26;token=c7a08eba-3351-4f76-97a2-3071155c9cc0" alt=""><figcaption><p>Token Logo Image Screen on Chrome</p></figcaption></figure>

Copy the last part of the URL including the `/` , in this case it will be `/Floki%20Token%20Logo.png`

\
**Step 8:** Go back to NFTUP and copy the IPFS URL

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2FR4AXhkpycMZ2QmQJ1ewK%2Fimage.png?alt=media&#x26;token=73d5431a-e2d3-4abd-aeaa-ee721d9543b2" alt=""><figcaption><p>Upload Success Screen</p></figcaption></figure>

**Step 9:** Append the two links\
\
Once you have copied the IPFS URL, append the image URL you copied from step 7 to the IPFS URL you just copied from step 8.\
\
It should look something like the below. **Valid Token Image IPFS URL Example:** ipfs\://bafybeidstbrvq7k75uqfohvhgeg5ki5br5ixyrkg3oh6eqtosklu6rd5b4/Floki%20Token%20Logo.png\
\
It **must** start with a valid `ipfs://` URL and ends with `.png`\
**Once you have that, save it somewhere.**\
\
**Step 10:** Generating your metadata.json file\
\
Go to the following URL: <https://json-generator.com/>\
\
Then paste in the following code onto the left panel:

```json
{
    "fileName": "Floki Token Logo.png",
    "name": "Ring of Fear",
    "description": "+10 fear",
    "properties": {
        "maxSupply": 2,
        "decimals": 0
    },
    "image": "ipfs://bafybeidstbrvq7k75uqfohvhgeg5ki5br5ixyrkg3oh6eqtosklu6rd5b4/Floki%20Token%20Logo.png"
}
```

The end result should look something like this:

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2FFrJOCcBFqNuX9NuHd9VH%2Fimage.png?alt=media&#x26;token=900df8dc-5530-43d3-8dbc-5e2e8df42ad3" alt=""><figcaption><p>Pasted JSON Object</p></figcaption></figure>

Modify your `fileName`, `name`, `description`, `maxSupply`, and `decimals`accordingly.\
\
For the `image` property you can paste in your appended URL that you had made from Step 9.\
\
**Step 11:** Click on the blue Generate button on the middle of the screen.\
**Step 12:** Download the .json file and save it as metadata.json

<figure><img src="https://4148298149-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F73azcO5XoRCtlZLD2krN%2Fuploads%2FU7mSgBgABIfgUVumM2zG%2Fimage.png?alt=media&#x26;token=dc1ca325-a416-43fc-8010-699422422bbb" alt=""><figcaption><p>Generated JSON Screen</p></figcaption></figure>

Once you have clicked on the Generate button, the panel on the right will fill up along with 3 new buttons on the right of your screen. \
\
Click on the `Download JSON file`.\
\
**Once downloaded, rename the file to be metadata.json**

**Step 12:** Upload metadata.json to IPFS\
Go back to your NFTUP application and close the previously success upload screen.\
\
Then upload your newly created metadata.json file.

**Step 13:** Similar to step 8, copy the IPFS URL.

It will look something like this: `ipfs://bafybeiegamqw64relxjhgvbwqno7qgrt3hpmmocycy74gj2ylmj3pottb4`\
\
Once copied, save it somewhere

**Step 14:** Append the IPFS URL with `/metadata.json`

The final URL should look something like this. **Valid IPFS URL Example:** ipfs\://bafyreiavuksvr6xojkqpmawzyvgazrkxw6t6ir7l7tc5a2kwu2q2snmkni/metadata.json

A valid ERC1155 Multi-Token IPFS URL starts with `ipfs://`and ends with `/metadata.json`
