# Unable to download image from lightbox with prevent anons from downloading files enabled

**URL:** <https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557>\
**Category:** Bug\
**Created:** [2017年十一月6日 21:45 UTC](https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557 "2017-11-06T21:45:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jomaxro](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jomaxro/32/126216_2.png) [@jomaxro](https://meta.discourse.org/u/jomaxro)\
**Post date:** [2017年十一月6日 21:45 UTC](https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557/1 "2017-11-06T21:45:57Z")

</div>

When the `prevent anons from downloading files` site setting is enabled, the download link below lightboxed images stops working, even for logged in users. Users end up on a generic `Oops! That page doesn’t exist or is private.`, where they have a login button (despite being logged in).

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2017年十一月6日 21:53 UTC](https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557/3 "2017-11-06T21:53:07Z")

</div>

Hmm this should work @zogstrip?

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2017年十一月6日 21:55 UTC](https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557/5 "2017-11-06T21:55:36Z")

</div>

Yup, this should work. Will 🔍

---

<div class="post-metadata">

**Author:** ![scombs](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/scombs/32/48616_2.png) [@scombs](https://meta.discourse.org/u/scombs)\
**Post date:** [2017年十一月6日 22:49 UTC](https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557/6 "2017-11-06T22:49:16Z")

</div>

I am able to reproduce this issue and submitted a support request. Let me know if I can help troubleshoot.

---

<div class="post-metadata">

**Author:** ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)\
**Post date:** [2019年五月15日 21:06 UTC](https://meta.discourse.org/t/unable-to-download-image-from-lightbox-with-prevent-anons-from-downloading-files-enabled/73557/10 "2019-05-15T21:06:33Z")

</div>

Pretty sure it’s going to be fixed by @pmusaraj’s PR

[https://github.com/discourse/discourse/pull/7551](https://github.com/discourse/discourse/pull/7551)
