# Problem with downloading PDF (want to enable for only logged in users)

**URL:** https://meta.discourse.org/t/problem-with-downloading-pdf-want-to-enable-for-only-logged-in-users/30350
**Category:** Bug
**Created:** [6월 23, 2015, 4:59오전 UTC](https://meta.discourse.org/t/problem-with-downloading-pdf-want-to-enable-for-only-logged-in-users/30350 "2015-06-23T04:59:46Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![kjain](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@kjain](https://meta.discourse.org/u/kjain)
#### Post date: [6월 23, 2015, 4:59오전 UTC](https://meta.discourse.org/t/problem-with-downloading-pdf-want-to-enable-for-only-logged-in-users/30350/1 "2015-06-23T04:59:46Z")

</div>

We have an installation of Discourse on: [http://discuss.analyticsvidhya.com](http://discuss.analyticsvidhya.com)

Recently, we wanted to enable download of a few PDF documents through the portal. I have enabled the same from the admin panel. We want the downloads to be enabled only for logged in users.

However, when I upload a pdf document, the upload happens fine (for example a screenshot below)

 ![](https://global.discourse-cdn.com/meta/original/3X/9/f/9f7a3d0fa4bc534e99e0c152ea6a1766e7abb9ea.png) 

However, whenever someone clicks on the link, the download doesn’t happen. Instead it is stuck at CDN

 ![](https://global.discourse-cdn.com/meta/original/3X/8/4/849fcb6e0612db91642ec1deb685c7f954a486ae.png) URL. This is how it looks:

I have tried providing a link directly to the file from upload location and that works for logged in users. However, people trying to download without login do not get a pop up saying they can not download the file without being logged in.

Any one else facing this problem? Or has a solution to the same? Any help is greatly appreciated.

---

<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: [2월 23, 2016, 1:28오전 UTC](https://meta.discourse.org/t/problem-with-downloading-pdf-want-to-enable-for-only-logged-in-users/30350/2 "2016-02-23T01:28:58Z")

</div>

I think @zogstrip fixed this a while ago?

---

<div class="post-metadata">

### Author: ![kjain](https://avatars.discourse-cdn.com/v4/letter/k/7feea3/32.png) [@kjain](https://meta.discourse.org/u/kjain)
#### Post date: [2월 23, 2016, 6:02오전 UTC](https://meta.discourse.org/t/problem-with-downloading-pdf-want-to-enable-for-only-logged-in-users/30350/3 "2016-02-23T06:02:29Z")

</div>

This thread was started a while ago as well 🙂

Regards,  
Kunal

---

<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: [2월 23, 2016, 6:09오전 UTC](https://meta.discourse.org/t/problem-with-downloading-pdf-want-to-enable-for-only-logged-in-users/30350/4 "2016-02-23T06:09:00Z")

</div>


