Hello,
I've switched servers again and now I'm having trouble with uploading pictures. No matter what I seem to try, I get this:
Can't call method "File_RelativePath" on an undefined value at (eval 30) line 3.
In my globals, I'm using this:
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}
In the Link Table, I have a column name as MainPic, Form type is File, Save Method is Simple, and the Save Path is an Absolute Path which it does recognize in during the link setup properties. I had this working before, so the codes should work ok still, even on a new server....or so I thought.
Any help on this would be Greatly Appreciated!
Perl Hopefull
I've switched servers again and now I'm having trouble with uploading pictures. No matter what I seem to try, I get this:
Can't call method "File_RelativePath" on an undefined value at (eval 30) line 3.
In my globals, I'm using this:
sub {
my $tags = shift;
my $file = $DB->table('Links')->file_info('ColumnName', $tags->{ID}) or return "Link ID $tags->{ID} does not have a file attached.";
return $file->File_RelativePath();
}
In the Link Table, I have a column name as MainPic, Form type is File, Save Method is Simple, and the Save Path is an Absolute Path which it does recognize in during the link setup properties. I had this working before, so the codes should work ok still, even on a new server....or so I thought.
Any help on this would be Greatly Appreciated!
Perl Hopefull