Forum Moderators: coopster
- Set the permissions of the upload directory to be as restrictive as possible
- Don't upload to a web accessible dir; upload to a 'sandbox' directory so you can do as many checks as you need to on the files before moving them to their final destination
- $filename=preg_replace("/[^a-z0-9_-]/","_",$filename) or similar before copying
- Make their final destination directory non executable by anyone if possible