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

Re: [jdgamble] add FILE type

Quote Reply
Re: [jdgamble] add FILE type In reply to
Hi,

Mmm... not sure what you are trying to do though?

Code:
my $args = $IN->get_hash;
$db->modify({Username => 'Jonathan', Image => $args->{Image}})

...would only update the record to the filename you are passing. To actually upload the file, you need to use something like this:

Code:
my $args = $IN->get_hash;
$db->modify({Username => 'Jonathan', Image => $IN->param('Image') });

...and then GT::File / GT::SQL should take the fact it is a file into consideration, and update the file entry in pre_Links_Files.

Hope that helps.

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!
Subject Author Views Date
Thread add FILE type jdgamble 5025 Jun 12, 2007, 5:28 PM
Thread Re: [jdgamble] add FILE type
Andy 4921 Jun 13, 2007, 1:26 AM
Thread Re: [Andy] add FILE type
jdgamble 4908 Jun 13, 2007, 11:14 AM
Thread Re: [jdgamble] add FILE type
tandat 4864 Jun 13, 2007, 6:46 PM
Thread Re: [tandat] add FILE type
jdgamble 4877 Jun 13, 2007, 7:08 PM
Thread Re: [jdgamble] add FILE type
tandat 4870 Jun 13, 2007, 7:19 PM
Thread Re: [tandat] add FILE type
jdgamble 4868 Jun 13, 2007, 7:25 PM
Thread Re: [jdgamble] add FILE type
tandat 4858 Jun 13, 2007, 8:13 PM
Post Re: [tandat] add FILE type
jdgamble 4881 Jun 13, 2007, 8:29 PM