Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6875811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T04:24:04+00:00 2026-05-27T04:24:04+00:00

I am planning on using Amazon S3 to let users upload photos from an

  • 0

I am planning on using Amazon S3 to let users upload photos from an iPhone and then let them be publicly viewable.

I am having some trouble understanding how to set up these security constraints in the bucket policy:

  • Everyone can read every file.
  • Everyone can upload a new file that is maximum 256K large.
  • No one can delete any file.
  • No one can modify any file.
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T04:24:05+00:00Added an answer on May 27, 2026 at 4:24 am

    Ok I sort of worked it out in the end. The only thing is that you can’t set different permissions on adding files and updating files. They are all covered by s3:PutObject. Also, it doesn’t seem possible to restrict file size.

    {
        "Version": "2008-10-17",
        "Id": "policy",
        "Statement": [
            {
                "Sid": "allow-public-read",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "*"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::bucket/*"
            },
        {
                "Sid": "allow-public-put",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "*"
                },
                "Action": "s3:PutObject",
                "Resource": "arn:aws:s3:::bucket/*"
            }
      ]
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We're planning to setup a server to record videos and save them using Amazon's
Background: I'm planning on using the JW FLV Media Player for streaming some videos:
I'm planning on caching some information using ehcache. Normally, I would follow the pattern:
I'm using temporary sessions in Amazon S3 with GetSessionToken/GetFederationToken, I am planing on having
I am planning of using Specflow for .NET. I come from a RoR background,
I am planning to install Hudson on Amazon EC2 using Ubuntu image. The code
Im planning on using ASIHTTP to handle some long file downloads/installs and I'd like
I'm writing a Java servlet that I'm planning to deploy on Amazon AWS using
I'm planning on using the SynchronizationContext class to perform some cross-thread marshalling of UI
I'm planning on using both these libraries (or wrappers?) in my upcoming iPhone app.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.