Displaying 2 results from an estimated 2 matches for "bucket_name".
2013 Jun 28
1
[HELP PLEASE!] attachment_fu and aws-s3
...> :s3,
:max_size => 1.megabyte,
:thumbnails => {
:thumb => ''145x145>'',
:normal => ''480x360>''
}
validates_as_attachment
amazon_s3.yml
development:
bucket_name: ''mybucket''
access_key_id: ''my_access_key''
secret_access_key: ''my_secret_key''
test:
bucket_name:
access_key_id:
secret_access_key:
production:
bucket_name:
access_key_id:
secret_access_key:
Im getting this error:
AWS::S3::P...
2007 Feb 23
1
How to make Rails send a file that is being written
...file to memory instead
of the disk, I''m really not familiar with Ruby''s IO Class though.. If
anyone has a suggestion..
I first tried this:
# download the file entirely then uploads it to the client
send_data AWS::S3::S3Object.value ''object_name'', ''bucket_name''
Then I figured I needed to use the streaming feature of AWS::S3
# Start a thread that downloads the file in the background
Thread.start do
open(''/tmp/tempfile'', ''w'') do |file|
AWS::S3::S3Object.stream(''object_name'', &...