Gossamer Forum
Home : Products : Gossamer Links : Discussions :

File Attachments

Quote Reply
File Attachments
Greetings,

I've been experiencing a problem - since changing server for some reason.

I have a number of FILE Columns in my table. An example is here:-

Column Name : Abc_Attachment
Column Type : CHAR
Column Index : None
Column Size : 255
Not Null : No
Form Type : FILE
File Save Location : /path/one/directory/up/from/html/directory
(directories were 755 then tried chmod 777)

I can add a file okay from Admin - uploads into the File Save Location (verified)

To call the File which is to download it I have the following in my template:-

Code:
<%if Abc_Attachment~%>
<a href="<%config.db_cgi_url%>/jump.cgi?ID=<%ID%>;download=Abc_Attachment">Download the Attachment</a>
<%~endif%>
When I initially upload the file ie. press Modify from Admin the file shows up (download _ view).

When I do a search for the same link the attachment is not shown.

When I try a modify again the attachment is not shown.

In my template (above) it displays the attachment.

When I try and download it from the detailed page - I get an error page - unable to find file (also get the same error from Admin).

The Attachment File Name does exist in the Table (checked mysqlman).

Does anyone have any ideas on what could possibly be wrong here?


Thanks,


Clint.
--------------------------
http://AffiliatesDirectory.com
The Affiliate Programs Directory
Quote Reply
Re: [Clint] File Attachments In reply to
Hi,

If you wanna email over FTP + GLinks admin details, I'll take a quick look for you. There are several things it could be - but a bit hard to diagnose over a forum =)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Clint] File Attachments In reply to
All fixed. It was due to the glinks_Links_Files.def file not existing for some reason. Creating it manually, re-synching and then testing - and it works fine now :)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!