Hi, I guess my question is rather simple, is it possible to upload to S3 without hitting the local server using Rails? If so, are there any tutorials or similar things around? PS: and what about being able to display a progress bar at the same time? I know I''m pushing it, but I also know there''s no point reinventing the wheel, especially not in the Rails world :) Cheers! -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
MaurĂcio Linhares
2009-Apr-11 22:41 UTC
Re: Uploading to S3 without hitting the local server
Nope, it is not. S3 "receives" files by HTTP PUT requests and browsers can''t do PUTs. Worse, to do something like that you would have to give your "user" your api keys, which isn''t really a good idea. - MaurĂcio Linhares http://alinhavado.wordpress.com/ (pt-br) | http://blog.codevader.com/ (en) On Sat, Apr 11, 2009 at 7:38 PM, Steve Dogers <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, I guess my question is rather simple, is it possible to upload to S3 > without hitting the local server using Rails? If so, are there any > tutorials or similar things around? > > PS: and what about being able to display a progress bar at the same > time? I know I''m pushing it, but I also know there''s no point > reinventing the wheel, especially not in the Rails world :) > > Cheers!--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi Steve, If you don''t mind using Flex/Flash to do the client side UI, you can upload directly to S3 with a progress bar using a POST. The api keys get encrypted so no worries about loosing them. http://developer.amazonwebservices.com/connect/entry.jspa?externalID=1092 Good luck, Michael On Apr 11, 3:38 pm, Steve Dogers <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, I guess my question is rather simple, is it possible to upload to S3 > without hitting the local server using Rails? If so, are there any > tutorials or similar things around? > > PS: and what about being able to display a progress bar at the same > time? I know I''m pushing it, but I also know there''s no point > reinventing the wheel, especially not in the Rails world :) > > Cheers! > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Andrew Timberlake
2009-Apr-13 04:50 UTC
Re: Uploading to S3 without hitting the local server
On Sun, Apr 12, 2009 at 12:38 AM, Steve Dogers <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hi, I guess my question is rather simple, is it possible to upload to S3 > without hitting the local server using Rails? If so, are there any > tutorials or similar things around? > > PS: and what about being able to display a progress bar at the same > time? I know I''m pushing it, but I also know there''s no point > reinventing the wheel, especially not in the Rails world :) > > Cheers! > --You can, read more here: http://docs.amazonwebservices.com/AmazonS3/2006-03-01/UsingHTTPPOST.html For a progress bar, you will need Flash on the browser (or something similar) or upload to your server. Andrew Timberlake http://ramblingsonrails.com http://www.linkedin.com/in/andrewtimberlake "I have never let my schooling interfere with my education" - Mark Twain --~--~---------~--~----~------------~-------~--~----~ 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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---