Hi,
Mmm... not sure what you are trying to do though?
$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:
$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!
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!