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.
Display image when file name only is in the DB
-
- User
- Posts: 25
- Location: Yorkshire, UK
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.