Adrien Coquio
2010-Nov-10 16:48 UTC
Send file from Amazon S3 to ActionController::TestUploadedFile
Hi, I''m writing a script to import several data in my application. I use ActionController::TestUploadedFile (from attachment_fu setup with an Amazon S3 account) to upload image. Actually, I have to give the path of the image file in my filesystem to the method TestUploadedFile but I would like to take the file from an Amazon S3 account. The way I can do that is : 1) Download the file from Amazon S3 2) Save it on my filesystem 3) Add it to my app with TestUploadedFile 4) Remove the file in my filesystem Is anybody knows a better way to do it (without using my filesystem) ? Thanks for your help Adrien -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.