Gossamer Forum
Quote Reply
add FILE type
I'm having a problem using the add or modify methods with file types.

I have something like this:

Code:

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

If I want to modify any other field besides a file type, everything works great.

However, when I browse for a file, it updates to the DB to say the actual filename, but it does not create or modify the file at all.

I believe that I was able to track down the problem to this statement in GT::SQL::Tables around line 325

Code:

( not ref $fh and not $set->{$col."_del"} ) and ( $self->error( 'FILE_NOGLOBREF', 'WARN', $col ), next );

The code seems to be using the next option and forgetting to create the file. Do I need to reference the file handle differently? What am I doing wrong?

Thanks,

- Jonathan
Subject Author Views Date
Thread add FILE type jdgamble 4993 Jun 12, 2007, 5:28 PM
Thread Re: [jdgamble] add FILE type
Andy 4888 Jun 13, 2007, 1:26 AM
Thread Re: [Andy] add FILE type
jdgamble 4876 Jun 13, 2007, 11:14 AM
Thread Re: [jdgamble] add FILE type
tandat 4832 Jun 13, 2007, 6:46 PM
Thread Re: [tandat] add FILE type
jdgamble 4845 Jun 13, 2007, 7:08 PM
Thread Re: [jdgamble] add FILE type
tandat 4838 Jun 13, 2007, 7:19 PM
Thread Re: [tandat] add FILE type
jdgamble 4836 Jun 13, 2007, 7:25 PM
Thread Re: [jdgamble] add FILE type
tandat 4826 Jun 13, 2007, 8:13 PM
Post Re: [tandat] add FILE type
jdgamble 4849 Jun 13, 2007, 8:29 PM