# How to upload a file to the IPFS network

**URL:** <https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157>\
**Category:** Help\
**Created:** [September 26, 2017, 11:52pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157 "2017-09-26T23:52:43Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvic2409](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marvic2409](https://discuss.ipfs.tech/u/marvic2409)\
**Post date:** [September 26, 2017, 11:52pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/1 "2017-09-26T23:52:43Z")

</div>

Hello I want to know how to upload a file to the ipfs network so I can download it from a different computer.

---

<div class="post-metadata">

**Author:** ![marvic2409](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marvic2409](https://discuss.ipfs.tech/u/marvic2409)\
**Post date:** [September 27, 2017, 12:42am UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/2 "2017-09-27T00:42:45Z")

</div>

I want to know how to upload file to the ipfs network and how to use the webui while connected to peers. PLEASE HELP!!!

---

<div class="post-metadata">

**Author:** ![cbluth](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/cbluth/32/151_2.png) [@cbluth](https://discuss.ipfs.tech/u/cbluth)\
**Post date:** [September 27, 2017, 6:15am UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/3 "2017-09-27T06:15:22Z")

</div>

You can get started at this link: [https://ipfs.io/docs/getting-started/](https://ipfs.io/docs/getting-started/)

---

<div class="post-metadata">

**Author:** ![marvic2409](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marvic2409](https://discuss.ipfs.tech/u/marvic2409)\
**Post date:** [September 27, 2017, 12:32pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/4 "2017-09-27T12:32:32Z")

</div>

Yeah I tried that but I can only upload words? Because I tried ipfs add file.file and when i remove the ipfs folder and reinstall it and try to get that file it says that there is not file like that.

---

<div class="post-metadata">

**Author:** ![marvic2409](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marvic2409](https://discuss.ipfs.tech/u/marvic2409)\
**Post date:** [September 27, 2017, 12:35pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/5 "2017-09-27T12:35:32Z")

</div>

It should be a file named minecraft servers.dmg under this QmPCawMTd7csXKf7QVr2B1QRDZxdPeWxtE4EpkDRYtJWty but when I try to get it its not there.

---

<div class="post-metadata">

**Author:** ![VictorBjelkholm](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ipfs.tech/victorbjelkholm/32/10_2.png) [@VictorBjelkholm](https://discuss.ipfs.tech/u/VictorBjelkholm)\
**Post date:** [September 27, 2017, 1:22pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/6 "2017-09-27T13:22:39Z")

</div>

Do you get any errors? I could download that file without any problems… Are you trying to download from the gateways ([https://ipfs.io/ipfs/QmPCawMTd7csXKf7QVr2B1QRDZxdPeWxtE4EpkDRYtJWty](https://ipfs.io/ipfs/QmPCawMTd7csXKf7QVr2B1QRDZxdPeWxtE4EpkDRYtJWty)) or from your local node (`ipfs get QmPCawMTd7csXKf7QVr2B1QRDZxdPeWxtE4EpkDRYtJWty`)? If locally. make sure you’re actually connected to other peers with `ipfs swarm peers`.

---

<div class="post-metadata">

**Author:** ![marvic2409](https://avatars.discourse-cdn.com/v4/letter/m/a9adbd/32.png) [@marvic2409](https://discuss.ipfs.tech/u/marvic2409)\
**Post date:** [September 27, 2017, 1:43pm UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/7 "2017-09-27T13:43:42Z")

</div>

I tried both. I want a way to upload a file. Then go on a different computer setup ipfs and download the file. Is that possible.

---

<div class="post-metadata">

**Author:** ![Crojav](https://avatars.discourse-cdn.com/v4/letter/c/dc4da7/32.png) [@Crojav](https://discuss.ipfs.tech/u/Crojav)\
**Post date:** [August 4, 2018, 11:14am UTC](https://discuss.ipfs.tech/t/how-to-upload-a-file-to-the-ipfs-network/1157/8 "2018-08-04T11:14:37Z")

</div>

Is this possible? Yes!

This is the way I got it working = all from the examples == getting started pages and

ipfs init ipfs daemon

make a text file as example with some text in it and name it hello

$ ipfs add hello  
added QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o hello

Now go to:

[https://ipfs.io/ipfs/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o](https://ipfs.io/ipfs/QmT78zSuBmuS4z925WZfrqQ1qHaJ56DQaTfyMUF7F8ff5o)

[https://ipfs.io/ipfs/](https://ipfs.io/ipfs/)[place your own hash from ipfs add hello here]

That is all you need for a single file object

* * *

Here a example how to upload directories with images:

$ mkdir picture\_test  
add some picture in it

$ ipfs add -r picture\_test  
added QmTdzspFCR1mKHbkkurdYiFwvNop6yLSDBabQdbk9M8Vgz picture\_test/Schermafdruk van 2018-06-10 11-12-06.png  
added QmUxMueU1oGWStGm2Ur6yzZimg6EmYTFPuGezwFp2oReTM picture\_test/Schermafdruk van 2018-06-10 18-14-58.png  
added QmTbHiB4z5p9N2Ra1Xxt5pZMMnCrn85iY6eUAqS8B9apYZ picture\_test

go to:

[https://ipfs.io/ipfs/QmTbHiB4z5p9N2Ra1Xxt5pZMMnCrn85iY6eUAqS8B9apYZ](https://ipfs.io/ipfs/QmTbHiB4z5p9N2Ra1Xxt5pZMMnCrn85iY6eUAqS8B9apYZ)

again with your own hash

[https://ipfs.io/ipfs/](https://ipfs.io/ipfs/)[your hash from add -r picture\_test]
