Ive used the code from http://www.planetsourcecode.com to carry out the upload process. I need to be able to validate the file being uploaded (whether its a valid image file or not).