Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

How to reference an attachement?

Quote Reply
How to reference an attachement?
I added attached2_file column (image file) to category db, now I want to reference this column from the browser, so I did:

<IMG SRC="/cats/images/<%ID%>/<%ID%>-<%attached2_file%>">

but this way was not the best way to do that, so I read you can do something like:

<IMG SRC="<%db_cgi_url%>/jump.cgi?view=File&ID=<%ID%>">

and it should work, but in my case it did not work???!!! any idea why.. thanks...
The uploaded files in LinksSQL gets stored in the local directory in this format:
<%ID%>/<%ID%>-<%File_Name%>
example:
1/1-cat3.jpg

Thanks..
Subject Author Views Date
Thread How to reference an attachement? Mark2 5369 Dec 6, 2005, 11:38 AM
Thread Re: [Mark2] How to reference an attachement?
Andy 5281 Dec 7, 2005, 1:43 AM
Thread Re: [Andy] How to reference an attachement?
Mark2 5275 Dec 7, 2005, 8:31 AM
Thread Re: [Mark2] How to reference an attachement?
Andy 5275 Dec 7, 2005, 8:37 AM
Thread Re: [Andy] How to reference an attachement?
Hargreaves 5271 Dec 7, 2005, 9:07 AM
Thread Re: [Hargreaves] How to reference an attachement?
Andy 5286 Dec 7, 2005, 9:17 AM
Post Re: [Andy] How to reference an attachement?
Hargreaves 5252 Dec 7, 2005, 9:52 AM
Thread Re: [Andy] How to reference an attachement?
Mark2 5239 Dec 7, 2005, 10:51 AM
Thread Re: [Mark2] How to reference an attachement?
Andy 5251 Dec 8, 2005, 12:03 AM
Thread Re: [Andy] How to reference an attachement?
Mark2 5233 Dec 9, 2005, 8:45 AM
Thread Re: [Mark2] How to reference an attachement?
Andy 5235 Dec 12, 2005, 1:26 AM
Post Re: [Andy] How to reference an attachement?
Mark2 5197 Dec 16, 2005, 8:40 AM