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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T14:46:29+00:00 2026-06-09T14:46:29+00:00

For a website I am helping out on, they want to allow users to

  • 0

For a website I am helping out on, they want to allow users to upload images for display. Obviously this has security implications. I have seen it discussed that uploaded images should be stored outside the webroot and than accessed by a script only.

However, when I reviewed OWASPS’s discussion on file upload security, I did not see any mention by them of the necessity to store uploaded files outside of the webroot. https://www.owasp.org/index.php/Unrestricted_File_Upload . Their list of developer recommendations had a number of other steps to take, but surprisingly to me at least did not seem to mention storing the files outside the webroot.

Can it be considered safe to allow images to be uploaded in the webroot assuming that you follow the recommendations listed by OWASP at the link above?

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

    No it’s not necessary to store the images outside the webroot. You should however make sure that you limit all uploads to jpg’s, png’s, etc. Only image formats, otherwise as explained in the link you posted you do have a risk of attacks on your system. I would also create a folder dedicated to the uploaded images inside the webroot, keeps things more orderly, and make sure all images inside are set to read-only for web users.

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

Sidebar

Related Questions

I have a designer that has been helping me with a website. Unfortunately, they
This is part of some instructions that I was given from a website helping
I am helping to maintain this website http://www.groupme.my/national/ For certain deals with a long
My website images look blurry for users with retina displays. (For example, on the
I'm helping out a friend with a website he's developing and we are having
I'm not familiar with ASP, but am helping someone out with their website as
I'm interested in helping a friend out this summer with some JavaScript trouble he
I am helping to redesign a website www.liveatsheastadium.com/test I am trying to figure out
I'm helping to debug a website and sometimes i get this error : Object
I've built this website last week, which has worked perfectly across all browsers that

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.