This topic is locked

File Name Display On View Page

2/23/2013 9:09:48 AM
PHPRunner General questions
H
herb200mph author

This is a "restart" of a previous topic. Thanks for the contributions, but none of the solutions worked.
Also, have since reinstalled a new downloaded version of PHPR #14944.
System is set for uploading documents.
EDIT page uploads the documents in both regular and compatibility mode.
File name/icon displayed after upload; page is then "saved" in the normal manner.
On the VIEW page, when set to "hyperlink," the resulting display shows a line of code where the link should be, as follows:
[{"name":"docuploads\/ProgramsFeatures_z8n00ym4.pdf","usrName":"ProgramsFeatures.pdf","size":34397,"
When the VIEW is set to "file," nothing appears where the filename/icon should display.
When setting File/Image Compatibility Mode, the system allows files uploads and the filename or link displays OK on the VIEW page.
We could live with the Compatibility Mode selected, but client wants a "progress bar" to display during file upload, which isn't available in Compatibility Mode - only when it is NOT selected does the progress bar show.
The upload options actually are visually different on the EDIT when the mode is on or off.

C
cgphp 2/23/2013

When the VIEW is set to "file," nothing appears where the filename/icon should display.


Check the source code of the rendered page. What do you see in the place of the link? Do you get any error in firebug?

H
herb200mph author 2/24/2013

Here is the table row for the display of the link to the document:
= = = = =

<TR class="runner-row style1">

<TD style="WIDTH: 415px; WHITE-SPACE: normal"

class="runner-cc runner-cc1">

<DIV

class="fieldlabel_Supporting_File_1 ">Trustees'

Report and Financial Statements. </DIV></TD>

<TD style="WIDTH: 568px; WHITE-SPACE: normal" class="runner-cc alt">
<DIV

class="fieldvalue_Supporting_File_1 "><a href="[{"name":"docuploads\/Tablet_Dimensions_Infographic_377mttfa.pdf","usrName":"Tablet_Dimensions_Infog" target=_blank>Link to Document</a>

</DIV></TD></TR>

= = = = =
That is the SHOW LINK view.
When set to FILE, the href code displays.

Sergey Kornilov admin 2/24/2013

When you select 'View as' type 'File' you have a few options like show file size, file icon, thumbnail etc:

http://xlinesoft.com/phprunner/docs/view_as_settings_file.htm
If something doesn't work as expected you can start by posting screenshots of View and Edit settings of that field.