Rendering of File Upload field contents

Rendering of File Upload field contents

Aparna:

This is a followup of the discussion here ... http://help.zoho.com/portal/en/community/?ftid=2266000000540065 ... starting a new Topic to explain my exact situation.

One of my first projects included the following that worked perfectly ...

a) Form called Staff Records has ...

- a File Upload field called UploadPhoto
- a Formula Field called Photo with this formula ...

("<img width='64' height='75' title='Staff Photo' alt='Staff Photo' src='http://creator.zoho.com/DownloadFile.do?filepath=/" + UploadPhoto + "&sharedBy=" + zoho.adminuser) + "'/>"


b) an HTML View called Staff Profile which has (amongst other things) ...

<%=staffRecord.Photo%>


When I delivered the Project to the Client (about 10 months ago) ... everything worked perfectly i.e.

- the List View for Staff Records would render the image in the Column for Photo
- the HTML View would also render the image


I can't recall the exact date ... but up until recently it still worked.

A few days ago, I noticed that the image was no longer being rendered in the HTML View (but was still rendering in the List View) ... so I searched the wiki ... and found this page ... http://zohocreator.wiki.zoho.com/Render-Uploaded-Images.html ... where it refers to creatorexport (instead of creator) ...

("<img width=&apos;100&apos; src=&apos;http://creatorexport.zoho.com/DownloadFile.do?filepath=/" + Image + "&sharedBy=" + zoho.adminuser) + "&apos;/>"

... so I tried to change my Formula ... List View is still fine ... but HTML View was NOT.


I even created a new field (called Photo3) with this formula ...

("<img width=&apos;100&apos; src=&apos;http://creatorexport.zoho.com/DownloadFile.do?filepath=/" + UploadPhoto + "&sharedBy=" + zoho.adminuser) + "&apos;/>"

.. no dice ... Photo3 does NOT render in the List View NOR in the HTML View

Note that this same wiki page ... http://zohocreator.wiki.zoho.com/Render-Uploaded-Images.html ... states that ...

1. For formula fields, the appLinkName and viewLinkName will be automatically appended to the download URL, if it is not specified when displaying the view.
2. To render the uploaded images other than using formula fields, the application link name and view link name must be specified while constructing the download url.  Refer the sample code given below.

... which seems to contradict your assertion in the earlier post that appLinkName and viewLinkName must be specified.

Please have someone contact me so I can provide the name of this Application that I have Shared with Support (I do not wish to publish it here out of respect for the Client).


Gaev