# File errors when d/l using browser but none using cmd line

**URL:** <https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168>\
**Category:** Help\
**Tags:** go-ipfs\
**Created:** [September 28, 2017, 11:07am UTC](https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168 "2017-09-28T11:07:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaratPurnyn](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@MaratPurnyn](https://discuss.ipfs.tech/u/MaratPurnyn)\
**Post date:** [September 28, 2017, 11:07am UTC](https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168/1 "2017-09-28T11:07:46Z")

</div>

Hello,  
I’ve just started going through the quickstart tutorial and wrapping my head around head around how to use ipfs.

I’m having problems with accessing a file after it’s been uploaded  
The file is monkey.jpg at this location:  
[https://ipfs.io/ipfs/QmPdDcp6aKcRM6izGTQQsDSxy7Wd63DnEFcwUJSd9aSV2f](https://ipfs.io/ipfs/QmPdDcp6aKcRM6izGTQQsDSxy7Wd63DnEFcwUJSd9aSV2f)

if I attempt to download it through the browser i get a message that it “cannot be displayed because it conatins errors.”  
If I download the file through command line “ipfs cat QmPdDcp6aKcRM6izGTQQsDSxy7Wd63DnEFcwUJSd9aSV2f/monkey.jpg \>monkey2.jpg”  
The downloaded image is fine.

What am I doing wrong?

---

<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 28, 2017, 1:21pm UTC](https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168/2 "2017-09-28T13:21:34Z")

</div>

everything youre doing seems right, except that the file is _NOT_ a jpeg. It looks more like a RAW image.

If you want to start with a PNG or JPG, I have converted it for you here:  
`https://ipfs.works/ipfs/QmWkGgzA6eJTQUnkbzsDZDD7j2fnAQqd9a7gw7BgGLHb1a/monkey.png`  
`https://ipfs.works/ipfs/QmTJpHuzGeN6vpayXXBeEx149xeTaJEQs6UcRcseAKfCB7/monkey.jpg`

---

<div class="post-metadata">

**Author:** ![MaratPurnyn](https://avatars.discourse-cdn.com/v4/letter/m/f0a364/32.png) [@MaratPurnyn](https://discuss.ipfs.tech/u/MaratPurnyn)\
**Post date:** [September 28, 2017, 3:28pm UTC](https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168/3 "2017-09-28T15:28:59Z")

</div>

Thank you, I thought that might be the case but windows didn’t complained if files were improperly named.

---

<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 28, 2017, 4:41pm UTC](https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168/4 "2017-09-28T16:41:05Z")

</div>

Ah yes, I’ve had that problem before too. My solution was to get rid of windows.  
Good luck!

---

<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 29, 2017, 12:38pm UTC](https://discuss.ipfs.tech/t/file-errors-when-d-l-using-browser-but-none-using-cmd-line/1168/5 "2017-09-29T12:38:46Z")

</div>

Probably depends on what browser you are using. Tried visiting this URL: [https://ipfs.io/ipfs/QmPdDcp6aKcRM6izGTQQsDSxy7Wd63DnEFcwUJSd9aSV2f/monkey.jpg](https://ipfs.io/ipfs/QmPdDcp6aKcRM6izGTQQsDSxy7Wd63DnEFcwUJSd9aSV2f/monkey.jpg) in three browsers, Safari, Chrome and FirefoxNightly

Safari: Works  
Chrome: Black page  
Firefox: “Cannot be displayed because it contains errors”

And [https://ipfs.works/ipfs/QmTJpHuzGeN6vpayXXBeEx149xeTaJEQs6UcRcseAKfCB7/monkey.jpg](https://ipfs.works/ipfs/QmTJpHuzGeN6vpayXXBeEx149xeTaJEQs6UcRcseAKfCB7/monkey.jpg) works in all three browsers.
