Sahil Shah
2012-Nov-27 22:02 UTC
multiple file upload to amazon s3 using jquery file upload rails app
Hi All, I am a newbie. I am following http://railscasts.com/episodes/383-uploading-to-amazon-s3?view=comments to upload file. I am able to upload single file with carrierwave. But I got 403(Forbidden) error when I try to upload multiple files using jquery file upload. When I try to upload single/multiple file I get alert box saying failed to upload and in console it says "Failed to load resource: the server responded with a status of 403 (Forbidden)" and "XMLHttpRequest cannot load https://xyz.s3.amazonaws.com/. Origin http://localhost:3000 is not allowed by Access-Control-Allow-Origin." What do I need to do to fix this? Thank you -- 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 To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/qSuJ7fcVqhYJ. For more options, visit https://groups.google.com/groups/opt_out.
Jordon Bedwell
2012-Nov-28 11:51 UTC
Re: multiple file upload to amazon s3 using jquery file upload rails app
On Tue, Nov 27, 2012 at 4:02 PM, Sahil Shah <sahil.shah288-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> When I try to upload single/multiple file I get alert box saying failed to > upload and in console it says "Failed to load resource: the server responded > with a status of 403 (Forbidden)" and "XMLHttpRequest cannot > loadhttps://xyz.s3.amazonaws.com/. Origin http://localhost:3000 is not > allowed by Access-Control-Allow-Origin."You need to contact AWS and consult their docs. -- 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 https://groups.google.com/groups/opt_out.
Possibly Parallel Threads
- Question of uploading large file using carrierwave, uploadify and nginx upload module
- How to secure file access using Carrierwave + S3 hosted on Heroku
- Encrypt/Decrypt files using Carrierwave to store in S3
- DO NOT REPLY [Bug 4693] New: Amazon S3 storage interface for rsync
- Help Regarding Amazon S3 and Career Wave along with Rspec