This topic is locked

Image download / view issue

1/7/2010 12:58:26 PM
PHPRunner General questions
rsawchuk author

I'm not sure whether this is a bug or a design flaw, but my PHPRunner 5.1 Build 2503 application does NOT allow the opening / viewing of downloaded documents from another directory.
We have a PHPRunner application that is used by members to track their learning activities. One field includes the capability to upload documents confirming that they have completed that activity. This application works fine with members being able to upload, edit and view their documents.
The problem arises when I create a Program Manager's version of this same application and upload it to a different directory (daplans3 vs daplans). All the normal functions (search, sort, etc.) work fine. The only aspect that does NOT work is when we click on the uploaded file name. Instead of opening and viewing the document, we get a "Webpage not found error".
The error url is "http://www.mysite.com/daplans3/das_plans_download.php?field=Files&key1=1";; the files folder is in daplans but the application is looking for it in daplans3 instead. This happens even though I put in the correct path to the files folder (or at least I have tried every possible variation with no success).
For now, the workaround I use is to allow admin to view and edit all the records in the original application. However, this is not an idea solution as the Program Manager needs to see other data (MemberID) that the typical users do not.
I would appreciate any solutions or a fix so that I can get the viewing of uploaded documents from another directory to work.
Thanks,
Russ

J
Jane 1/8/2010

Russ,
there are two workarounds:

  1. you can create link to your files manually using custom format on the "View as" settings dialog on the Visual Editor tab
  2. or you can create custom view for admin only on the Datasource tables tab, do not use User can see and edit their own records only security method for this view and assign permissions for admin only on the User group permissions dialog on the Security tab.