4
我想用Perl將文件上傳到S3。如何使用Perl將圖像上傳到Amazon S3?
根據該模組:
http://metacpan.org/pod/Amazon::S3::Bucket
...下面的代碼將上傳文本文件:
# create resource with meta data (attributes)
my $keyname = 'testing.txt';
my $value = 'T';
$bucket->add_key(
$keyname, $value,
{ content_type => 'text/plain',
'x-amz-meta-colour' => 'orange',
}
);
但是,你怎麼上傳圖片(GIF,JPEG,PNG)到S3?
感謝,
琳達