in reply to Automating upload of files to Amazon S3 Buckets

So, you've initialised a Net::Amazon::S3 object with your API details?

This object has a 'bucket' method, to select a single bucket. This will return a Net::Amazon::S3::Bucket object. You will find what you need in the Net::Amazon::S3::Bucket module docs.

  • Comment on Re: Automating upload of files to Amazon S3 Buckets

Replies are listed 'Best First'.
Re^2: Automating upload of files to Amazon S3 Buckets
by OfficeLinebacker (Chaplain) on Oct 08, 2013 at 17:41 UTC
    Thanks for pointing me in the right direction. That documentation looks much better.
Re^2: Automating upload of files to Amazon S3 Buckets
by OfficeLinebacker (Chaplain) on Oct 08, 2013 at 22:04 UTC

    Hi. So I did my research and the file data goes in the "data" field. So I have to open a file stream and essentially stream the file into the "data" field?

    Or I guess File::Slurp would work, and jam that string into the 'data' field (sometimes it's called "value.").

    Also, I am choosing to pronounce it "Bouquet" in honor of Hyacinth.

      Look at the add_key_filename() method. It is for uploading files into S3.

        ha and here I was Slurping file contents into a string and passing it as data.

        I guess these modules are not as well documented as most of the other ones I use but they are still useful. Thanks.