1. Home
  2. Computing & Technology
  3. PHP / MySQL
photo of Angela Bradley
Angela's PHP / MySQL Blog

By Angela Bradley, About.com Guide to PHP / MySQL

Secure File Uploads?

Thursday January 4, 2007
Allowing users to upload files to your website is always going to be a risk. That being said, there are some things you can do to somewhat reduce the risk. Have you taken other security measures on your file uploads? If so, please share them!
Comments
August 27, 2008 at 10:42 pm
(1) Geroge says:

You can:

Create a random named folder.
Rename the file once uploaded randomly.
Save the random named file in the random named folder.
Check extensions.
Append a fake extension to the file once uploaded, like oqie213.txt.safe

Leave a Comment

Line and paragraph breaks are automatic. Some HTML allowed: <a href="" title="">, <b>, <i>, <strike>

Explore PHP / MySQL
About.com Special Features

Stay connected and entertained with reviews on tips on the latest HDTVs, cellphones and more. More >

Easy ways to connect two computers for networking purposes. More >

  1. Home
  2. Computing & Technology
  3. PHP / MySQL

©2009 About.com, a part of The New York Times Company.

All rights reserved.