View Single Post
  #8 (permalink)  
Old Apr 15th, 2008, 19:11
jimz jimz is offline
Up'n'Coming Member
Join Date: Feb 2006
Location: London
Age: 25
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Won't send jpeg format? Please check my php.

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/gifor $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
Reply With Quote