Quote:
if ($type == "image/jpeg")
|| ($type == "image/jpg")
|| ($type == "image/gif")
|| ($type == "image/psd")
|| ($type == "image/tiff")
|| ($type == "image/bmp")
|
It's a bracketing problem.
if ($type == "image/jpeg"
|| $type == "image/jpg"
|| $type == "image/gif"
|| $type == "image/psd"
|| $type == "image/tiff"
|| $type == "image/bmp")