I'm having a problem using the add or modify methods with file types.
I have something like this:
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
( 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
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