Cytat(sf @ 2005-10-01 14:20:52)
"$_FILES['userfile']['type']
The mime type of the file, if the browser provided this information. An example would be "image/gif". This mime type is however not checked on the php side and therefore don't take its value for granted. "
też tak kombinowałem. sprawdzałem czy typ to image/jpg lub image/pjgp. sam nie mogłem w to uwierzyć ale gdy otworzysz sobie notatnik (albo cokolwiek innego), zapiszesz pusty plik jako *.jpg to $_FILES['userfile']['type'] pokaże Ci że masz do czynienia z image/jpg... :/