Body: <p>I have created custom field section in contribution page and I have one file upload field. Uploaded file is not able to access in View contribution (logged in as super admin), getting below error.</p>
  
  <p><a href="https://i.sstatic.net/UaIni.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/UaIni.png" alt="enter image description here"></a></p>
  
  <p>The only way to access this file is using edit contribution, the file is getting downloaded if I click the link. </p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-10T15:23:18.627Z
Comments.Text: which version of CiviCRM are you using? - I tried with 4.7.23 and worked as excepted but for some reason the file extension got saved as unknown
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-10T18:42:47.130Z
Comments.Text: The latest one 4.7.29
Comments.UserDisplayName: Ashwin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-11T16:34:25.187Z
Comments.Text: please try to reproduce the error against - http://dmaster.demo.civicrm.org/
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-12T12:30:29.617Z
Comments.Text: in this URL (dmaster.demo.civicrm.org) the uploaded file is not displaying. I have created a new custom field under contribution and uploaded one PDF file, while viewing this contribution its not displaying attached file.
Comments.UserDisplayName: Ashwin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-12T14:21:55.750Z
Comments.Text: please check (dmaster.demo) I have uploaded a PDF file and i can see the same in view contribution - are you trying to view somewhere else ?
Comments.UserDisplayName: Ramesh - ARTECH Consultancy
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-16T07:52:26.987Z
Comments.Text: This is an issue with URL. /administrator/ is not there before index.php? in view only mode. Current URL (/index.php?option=com_civicrm&task=civicrm/file&reset=1&id=13&eid=81).
  Recommanded URL(/index.php?option=com_civicrm&task=civicrm/file&reset=1&id=13&eid=81) 
  so which file I need to edit to add this /administrator/ in file URL?
Comments.UserDisplayName: Ashwin
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-01-18T21:48:24.663Z
Comments.Text: It sounds like you are using Joomla.  In which case you would be better testing in http://joomla.demo.civicrm.org/.  The dmaster site is for Drupal.
Comments.UserDisplayName: William Mortada
Tags: <civicontribute><joomla><pdf>
Title: Permission error while accessing uploaded files
ThreadText: # Permission error while accessing uploaded files
  
  (Asked by: username_0 on 2018-01-10)
  
  I have created custom field section in contribution page and I have one file upload field. Uploaded file is not able to access in View contribution (logged in as super admin), getting below error.
  
  [![enter image description here](https://i.sstatic.net/UaIni.png)](https://i.sstatic.net/UaIni.png)
  
  The only way to access this file is using edit contribution, the file is getting downloaded if I click the link.
  
  **Tags:** civicontribute, joomla, pdf
  
  > **Comments:**
  > **username_1**: which version of CiviCRM are you using? - I tried with 4.7.23 and worked as excepted but for some reason the file extension got saved as unknown  
  > **username_0**: The latest one 4.7.29  
  > **username_1**: please try to reproduce the error against - http://dmaster.demo.civicrm.org/  
  > **username_0**: in this URL (dmaster.demo.civicrm.org) the uploaded file is not displaying. I have created a new custom field under contribution and uploaded one PDF file, while viewing this contribution its not displaying attached file.  
  > **username_1**: please check (dmaster.demo) I have uploaded a PDF file and i can see the same in view contribution - are you trying to view somewhere else ?  
  > **username_0**: This is an issue with URL. /administrator/ is not there before index.php? in view only mode. Current URL (/index.php?option=com_civicrm&task=civicrm/file&reset=1&id=13&eid=81). Recommanded URL(/index.php?option=com_civicrm&task=civicrm/file&reset=1&id=13&eid=81)  so which file I need to edit to add this /administrator/ in file URL?  
  > **username_2**: It sounds like you are using Joomla.  In which case you would be better testing in http://joomla.demo.civicrm.org/.  The dmaster site is for Drupal.  
  
  ---
  
  ## 0 answers
  
  