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

  • SEARCH
  • Home
  • 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 8809241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T02:49:17+00:00 2026-06-14T02:49:17+00:00

I am uploading text file to Amazon s3 bucket via java application. I want

  • 0

I am uploading text file to Amazon s3 bucket via java application. I want to set read access fot that file for everyone. Does anyone know how to do this ? or direct me to some appropriate resources ?

  • 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-06-14T02:49:18+00:00Added an answer on June 14, 2026 at 2:49 am

    You can create a bucket policy that make all resources (or those who match a wildcard) available.

    Click on your bucket properties on aws S3 console and edit the bucket policy to something like :

    {
        "Version": "2008-10-17",
        "Statement": [
            {
                "Sid": "auniqueid",
                "Effect": "Allow",
                "Principal": {
                    "AWS": "*"
                },
                "Action": "s3:GetObject",
                "Resource": "arn:aws:s3:::bucket/*"
            }
        ]
    }
    

    Where bucket in the Resource parameter is your bucket name.

    Also you can set public permission for a specific file via Java API :

    PutObjectRequest por = new PutObjectRequest(bucketName, key, file);
    por.setCannedAcl(CannedAccessControlList.PublicRead);
    s3.putObject(por);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In my Django app, I'm uploading a text file, using file.read() to get the
Imagine this simple form for uploading a file: <form action=upload enctype=multipart/form-data> <input type=text name=name/>
trying to read text into memory from a text file the user selects MODEL:
I am making an application that allows users to upload a file in a
I want to upload file with php(text file) and always this file saved as
I'm using Paperclip / S3 for file uploading. I upload text-like files (not .txt,
I am trying to gather information into a text file, that I will later
This is my code for uploading text to PHP file and then to MySQL
I've got a form uploading input lines of text to a .txt file and
How can I set the S3 bucket file header to be the following: content-encoding:

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.