Many thanks for the help. I'm thinking of the function getimagesize(). However, do I test the getimagesize() to see if it is a jpeg file before I do the move_uploaded_file() or can I do the move_uploaded_file() first then do the getimagesize()? Question is, I'm not sure if I can do the getimagesize() before move_uploaded_file because the getimagesize requires a specific path. But if I do the getimagesize after the move_uploaded_file(), how do I delete the file from the path once it is not a jpeg file?
ljCharlie