Answers.Body: <p>As Pradeep implies, this isn't a CiviCRM issue but a web browser configuration issue.</p>
  
  <p>I'm not sure what web browser you're using, but in Firefox, when I click on a PDF in an activity (see "1" below), I get a pop-up where I can select "Open With" (2) and "Do this automatically for files like this from now on" (3).  I imagine similar options exist for all the major web browsers.</p>
  
  <p><a href="https://i.sstatic.net/HV1iq.png" rel="noreferrer"><img src="https://i.sstatic.net/HV1iq.png" alt="enter image description here"></a></p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-03T07:53:23.213Z
Answers.Text: Thank youuu :=)
Answers.UserDisplayName: ANNA COASSIN
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-07T11:49:06.703Z
Answers.Text: Just to note that this will still download the file to your computer.  It's just that it will save the file in a temporary directory rather than saving it in your downloads directory.
Answers.UserDisplayName: William Mortada
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-30T16:44:36.687Z
Answers.LastActivityDate: 2018-08-30T16:44:36.687Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>To view pdf rather downloading locally you will need to install a <a href="https://chrome.google.com/webstore/detail/docs-pdfpowerpoint-viewer/nnbmlagghjjcbdhgmkedmbmedengocbn?hl=en-US" rel="nofollow noreferrer">PDF preview</a> "add on" in Chrome.</p>
  
  <p>Or you can turn off PDF download from chrome settings</p>
  
  <p>Navigate to Settings >> Advanced >> Content Settings >> PDF Documents. Turn off 'Download PDF files instead of automatically opening them in Chrome'.</p>
  
  <p>HTH</p>
  
  <p>Pradeep</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-04T11:36:25.140Z
Answers.Text: Hi, I have tried this, and it still downloads every time :(....
Answers.UserDisplayName: ANNA COASSIN
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-09-06T15:28:57.150Z
Answers.Text: Hi Anna, I have updated my answer to include second solution i.e turn off from chrome browser settings.
Answers.UserDisplayName: Pradeep Nayak
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-08-30T14:44:46.633Z
Answers.LastActivityDate: 2018-09-06T15:28:18.410Z
Answers.LastEditDate: 2018-09-06T15:28:18.410Z
Answers.UserDisplayName: Pradeep Nayak
Answers.Body: <p>In the latest version, if you customize <code>civicrm/file</code> link to have <code>download=0</code> query string parameter in it, the file will be opened in a new tab instead of downloading. For eg, if the URL is</p>
  
  <pre><code>https://site-name/civicrm/file?reset=1&amp;id=400&amp;eid=622&amp;fcs=&lt;file_hash&gt;
  </code></pre>
  
  <p>Adding download parameter will open the pdf/image in the new tab of the browser.</p>
  
  <pre><code>https://site-name/civicrm/file?reset=1&amp;id=400&amp;eid=622&amp;fcs=&lt;file_hash&gt;&amp;download=0
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-08T14:56:40.297Z
Answers.Text: oh, that's interesting, where can you customize the file link?
Answers.UserDisplayName: RayWright
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-09T06:02:52.463Z
Answers.Text: It would need some customization in an extension. Maybe, use https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_links/, pageRun, etc?
Answers.UserDisplayName: jitendra - fuzion
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-03-08T12:23:22.513Z
Answers.LastActivityDate: 2019-03-08T12:23:22.513Z
Answers.UserDisplayName: jitendra - fuzion
Body: <p>I am not a developer, just a charity volunteer so bear with me please!!...</p>
  
  <p>I would like to find a way to simply view files uploaded to contacts (for example under Activities, or Notes) without downloading them every time.</p>
  
  <p>Example, I want to save a PDF of a letter under a Note. But every time I want to view the PDF, it downloads it, clogging up my PC.... </p>
  
  <p>How do I get around this problem??</p>
  
  <p>Thank you and apologies if this is a super duper easy question...</p>
  
  <p>Thanks</p>
  
  <p>Anna </p>
  
Tags: <wordpress><upload>
Title: View uploaded documents without having to download them every time - Wordpress
ThreadText: # View uploaded documents without having to download them every time - Wordpress
  
  (Asked by: username_0 on 2018-08-30)
  
  I am not a developer, just a charity volunteer so bear with me please!!...
  
  I would like to find a way to simply view files uploaded to contacts (for example under Activities, or Notes) without downloading them every time.
  
  Example, I want to save a PDF of a letter under a Note. But every time I want to view the PDF, it downloads it, clogging up my PC....
  
  How do I get around this problem??
  
  Thank you and apologies if this is a super duper easy question...
  
  Thanks
  
  username_0
  
  **Tags:** wordpress, upload
  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_1 on 2018-08-30. Score: 6
  
  As username_3 implies, this isn't a CiviCRM issue but a web browser configuration issue.
  
  I'm not sure what web browser you're using, but in Firefox, when I click on a PDF in an activity (see "1" below), I get a pop-up where I can select "Open With" (2) and "Do this automatically for files like this from now on" (3). I imagine similar options exist for all the major web browsers.
  
  [![enter image description here](https://i.sstatic.net/HV1iq.png)](https://i.sstatic.net/HV1iq.png)
  
  > **Comments:**
  > **username_0**: Thank youuu :=)  
  > **username_2**: Just to note that this will still download the file to your computer.  It's just that it will save the file in a temporary directory rather than saving it in your downloads directory.  
  
  ---
  
  ### Answer by username_3 on 2018-08-30. Score: 2
  
  To view pdf rather downloading locally you will need to install a [PDF preview](https://chrome.google.com/webstore/detail/docs-pdfpowerpoint-viewer/nnbmlagghjjcbdhgmkedmbmedengocbn?hl=en-US) "add on" in Chrome.
  
  Or you can turn off PDF download from chrome settings
  
  Navigate to Settings >> Advanced >> Content Settings >> PDF Documents. Turn off 'Download PDF files instead of automatically opening them in Chrome'.
  
  HTH
  
  username_3
  
  > **Comments:**
  > **username_0**: Hi, I have tried this, and it still downloads every time :(....  
  > **username_3**: Hi username_0, I have updated my answer to include second solution i.e turn off from chrome browser settings.  
  
  ---
  
  ### Answer by username_4 on 2019-03-08. Score: 1
  
  In the latest version, if you customize `civicrm/file` link to have `download=0` query string parameter in it, the file will be opened in a new tab instead of downloading. For eg, if the URL is
  
  ```
  https://site-name/civicrm/file?reset=1&id=400&eid=622&fcs=<file_hash>
  
  ```
  
  Adding download parameter will open the pdf/image in the new tab of the browser.
  
  ```
  https://site-name/civicrm/file?reset=1&id=400&eid=622&fcs=<file_hash>&download=0
  
  ```
  
  > **Comments:**
  > **username_5**: oh, that's interesting, where can you customize the file link?  
  > **username_4**: It would need some customization in an extension. Maybe, use https://docs.civicrm.org/dev/en/latest/hooks/hook_civicrm_links/, pageRun, etc?  
  
  ---
  
  