Ok, I think I've spotted your problem. Did you notice when you did "print_r($_FILES)" the type was "image/pjpeg"?
So, you just need to add that to the end of your if statement like so:
- PHP: Select all
if($filetype=="application/octet-stream" or $filetype=="image/jpeg" or $filetype=="image/jpg" or $filetype=="image/gif" or $filetype=="image/bmp" or $filetype=="image/pjpeg")
...by the way, pjpeg stands for progressive jpeg
Give that if statement a go, and see if that works
