Page 1 of 1
Display image when file name only is in the DB
Posted: Tue Jun 03, 2014 8:13 am
by emanweb
Hi there! I am trying to display an image (with the img tag) on the view page. The problem is that the field I have on the database only stores the filename. So, I am wondering if I can add a prefix and suffix to this field value so I can display on view page. Programming is not a problem so, if someone can point me to the right direction I can code myself. Thank you.
Re: Display image when file name only is in the DB
Posted: Sat Jun 07, 2014 5:55 am
by Ella
I think you can just set your own prefix in the IMG hypertext section but I simply included the folder path in my gif_url field eg mygifs/sample001.gif and then set the HREF field to gif_url. BTW, for security reasons I don't think browsers will display anything with a file:/// prefix. Hope that helps.