Safe and Secure File Uploader function
Posted: Mon Feb 05, 2007 10:48 pm
I am developing a method which will take a posted file, perform a series of checks and then write the file to the server (Linux) if it passes all of the checks.
Currently I perform the following checks:
I'd like to make my upload function very robust so I am sure that their are other checks which need to be performed. Also I have heard that apache can also report errors on file uploads. Though I am not sure how to do this.
Currently I perform the following checks:
- Check to make sure the filesize is not too big
Check the files extension
I'd like to make my upload function very robust so I am sure that their are other checks which need to be performed. Also I have heard that apache can also report errors on file uploads. Though I am not sure how to do this.