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 8393373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T19:45:59+00:00 2026-06-09T19:45:59+00:00

Not sure this is possible as I’m just getting started with Amazon S3. I

  • 0

Not sure this is possible as I’m just getting started with Amazon S3.

I have an application where users can upload images files to S3. I want these image files to only be accessible to application users, so if a user is logged in and requests an image, it will be displayed but when I’m trying to access the image by entering it’s url directly, I’m not getting the image.

I’m using this s3 Coldfusion handler, but I’m not sure how to set it up correctly regarding ACL, because only the uploading user will have access to a bucket and setting the ACL to public read will not block non-application users from accessing a file.

Question:
Is it possible to grant ACL on an application basis?

  • 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-09T19:46:01+00:00Added an answer on June 9, 2026 at 7:46 pm

    You can put buckets and objects which only allow access to the owner by passing an empty acl string. By owner i’m referering to the owning Amazon account, not the user in your application.

    This example creates a single bucket then uploads an image into a sub folder.

    <cfscript>
    s3 = createobject("component", "s3").init(accessKeyId, secretAccessKey);
    s3.putBucket("myapps-bucket", "");
    
    s3.putObject(
        bucketName="myapps-bucket", 
        fileKey="image.png", 
        contentType="image/png", 
        acl="",                         
        keyName="user1234/image.png"
    );
    </cfscript>
    

    To display the image to the user you must generate a signed link to the object othewrwise they will get an authorisation error from s3

    <!--- signed link valid for 30 mins --->
    <cfset link = s3.getObject(bucket, "user1234/image.png", 30) />
    <cfoutput>
        <img src="#link#" />
    </cfoutput>
    

    Currently it is only possible to have 100 buckets per Amazon account, so i would recommend using a folder per user rather than separate buckets.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not sure this is possible but maybe you can help. I have a list,
I'm not sure this is possible, but in ruby, you can dynamically call a
I'm not sure if this is possible (complete non-flash developer speaking), but we have
Not entirely sure this is possible, but hoping to be pleasantly surprised. I have
I'm not sure if this possible. If not, let me know. I have a
Not sure if this is possible, but I have a field in a table
Not sure if this is possible, but I have a div with a border
Not sure if this is possible... however I have a table called LineItems with
I am not sure this is possible. I have a bunch of @Helper 's
I'm not sure if this is even possible but here goes: Currently I have

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.