Displaying 4 results from an estimated 4 matches for "s3object".
2011 Apr 11
3
sort.int(S3object) strips class but not the is.object flag
If x has an S3 class then sort.int(x) returns a value
without an S3 class but which has the is.object flag set,
which, I think, causes identical() give a false/misleading
report:
> x <- structure(1:3, class="unrecognizedClass")
> y <- sort.int(x)
> t <- 1:3
> identical(y, t) # expect TRUE
[1] FALSE
> identical(as.vector(y), as.vector(t)) # expect
2010 Aug 08
2
paperclip save to disk and s3
I have a standard Paperclip setup that saves a file to my disk. In
addition I would also like the file saved to my amazon s3 bucket.
[code]
after_save :copy_to_s3
def copy_to_s3
has_attached_file :photo,
:storage => :s3,
:s3_credentials => "#{RAILS_ROOT}/config/s3.yml",
:styles => {
:thumb => "100x100#",
:small => "750x750>"
2007 Feb 23
1
How to make Rails send a file that is being written
...9;s been
downloaded. Even better would be to download the 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|...
2007 Sep 27
1
AWS / S3 upload path requirements?
Hey there,
So I''ve started using the AWS::S3 ruby library to interface (http://
amazon.rubyforge.org/).
I''ve installed properly, created buckets, I haven''t have any luck
storing files with the following syntax:
file = ''c:/path/to/file''
S3Object.store(file, open(file), ''bucketname'')
getting ASW:S3::RequestTimeout: errors from S3 every time. As you
might be able to tell, I''m running Rails on a PC (boo, I know).
However, I''ve tried uploading with several different path types, e.g.
/path/to/file
\path\to...