Subject: | Bug: Error uploading photo using Picasa 0.02 |
Date: | Tue, 24 Jun 2008 22:15:05 -0400 |
To: | bug-Picasa [...] rt.cpan.org |
From: | yitzle <yitzle [...] users.sourceforge.net> |
Module: Picasa-0.02 ( PicasaAlbum )
Perl version: This is perl, v5.8.8 built for i486-linux-gnu-thread-multi
OS: Linux debian 2.6.18-6-686 #1 SMP Fri Jun 6 22:22:11 UTC 2008 i686 GNU/Linux
Issue:
__CODE__
my $api = new Picasa;
...
my %hash = (
userid => $user,
album => $curAlbum,
photo => $photo,
access => $access
);
$hash{ 'summary' } = $summary if ( defined $summary );
$hash{ 'keywords' } = $keywords if ( defined $keywords );
if ( $debug ) {
print "Upload photo:\n";
for ( keys %hash ) {
printf " - %15s => %s\n", $_, $hash{ $_ };
}
}
$api->add_photo( \%hash );
__END__
__OUTPUT__
Upload photo:
- album => album
- access => private
- photo => /home/user/101_DSC_3446.JPG
- userid => gmailId
Can't call method "content" on an undefined value at
/usr/local/share/perl/5.8.8/Picasa/Album.pm line 36, <> line 4.
__END__