Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Senior Coder
    Join Date
    Dec 2005
    Location
    Slovenia
    Posts
    1,960
    Thanks
    120
    Thanked 76 Times in 76 Posts

    Where to put user submited files ?

    Where is normal/prefered position of folder for user submited files(jpg and such ...), is it under web-inf, or totaly out of web server paths ?

  • #2
    eak
    eak is offline
    Regular Coder eak's Avatar
    Join Date
    Jun 2002
    Location
    Nashville, TN
    Posts
    354
    Thanks
    0
    Thanked 26 Times in 26 Posts
    If you limit what your users can upload, like only images (jpg, png, etc.), then somewhere in the web root is fine. If you do not have any restrictions on the types of files a user can upload, I would store them under the web root. For example, if someone uploads a PHP script, I don't want them to be able to run it on my server.
    eak | "Doing a good deed is like wetting your pants; every one can see the results, but only you can feel the warmth."


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •