I was wondering if
Code: Select all
$_FILES['submitFile']['type']
returns the actual file type or it just returns
the file type depend on the file EXTENSION?
cause I have a submit system which recognize
file type using that command and once Ive seen
an user submitted a BITMAP file but with the
extension of JPEG.
It was a JOEG file but $_FILES['submitFile']['type'] recognize
it as BITMAP!
so actuslly how can we get a real file type?