You also need to change the files being uploaded to 666 permissions to be able to delete them.
I would check hotscripts.com for an upload script that you could check out how they are testing MIME types. I've never seen anyone check for a file type as you are doing. Usually you strip the filename into two pieces and test the extension for zip, jpg, mp3, etc...