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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:25:52+00:00 2026-06-07T14:25:52+00:00

I might be asking a dumb question, but I am trying to understand the

  • 0

I might be asking a dumb question, but I am trying to understand the necessary security precautions I need to take to allow users to upload images (png, jpg, gif) to S3, and serve it via a absolute url hosted on ec2 for facebook canvas. I have the bucket name and file name stored in RDS and plan on showing images via a call to absolute address in the canvas.

I realize that for picture uploads, at minimum, there needs to be a check for:
1) file type (jpg, png, gif),
2) file size (< 5 mb),
3) mime type?

My question is that since the files are stored on s3 and only file name and bucket name is physically on the server, are additional security precautions necessary? I read elsewhere that I should run it through gd or imagemagick and resize, etc. and I am concerned that might be overkill and tax server resources.. I realize that file upload security is very very difficult, and any help would be greatly appreciated.

Thank you in advance.

  • 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-07T14:25:53+00:00Added an answer on June 7, 2026 at 2:25 pm

    I would advise not running it through GD and Imagemagick as you say, because of system usage and just unnecessary processes. S3 is really fast. Especially from another box on the Amazon system.
    I ended up resizing graphics because we didn’t need them that large, and we didn’t want to pay for storing large images, but that’s not a security issue, just a $$/payment issue.

    The security isn’t hard. Your EC2 instance, if referred to by your Facebook App, doesn’t need any security beyond read. Your server code/app would do the write permissions. When you upload the image using the S3 object (if this is in PHP) you simply set the permissions of the file when you upload.

    I have a bunch of Facebook apps that post images to S3 with no problem. It’s a great architecture and works well.

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

Sidebar

Related Questions

Okay, the question might seem dumb, but I'm asking it anyways. After struggling for
OK I might be asking a stupid question, but I'm banging my head over
Okay, I might be asking an age old question, but I did not get
Might be my question is abstract or out of context, but i am asking
This question might be closed as it sounds vague but I'm really asking this
I might be asking a question that's already been answered, but I cannot find
I'm looking for a single answer (but I might be asking the wrong question)
This might be a stupid question, but I just saw a question asking how
I might be asking the wrong question, but my knowledge in this area is
I might be asking very simple question, but i am not able to get

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.