Newy
Newy

Reputation: 40107

Making files uploaded to s3 public

I'm using s3-swf-upload-plugin in a Rails project to upload directly to S3. Pretty nifty, but can't seem to figure out how to make the uploaded files public. S3 doesn't seem to have the concept of public "buckets". Any ideas?

Upvotes: 0

Views: 2010

Answers (2)

Brad Lucas
Brad Lucas

Reputation: 185

I use S3Fox for Firefox, http://www.s3fox.net/

You can browse your S3 buckets then right-click -> Edit ACL and set things to public.

You can also get the url for the bucket in a similar fashion.

It is very simple to use.

Upvotes: 0

Olly
Olly

Reputation: 7758

S3 supports four different access policies for both buckets and objects.

Take a look at the Canned Access Policies section in the S3 Documentation.

Specifically:

  • private
  • public-read
  • public-read-write
  • authenticated-read

So in your case, you'll need set the access policy on your bucket and uploaded files to public-read.

Upvotes: 1

Related Questions