Re: How reliable is mime type in $_FILES superglobal.
- From: Colin McKinnon <colin.thisisnotmysurname@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Jan 2006 21:53:28 GMT
splodge wrote:
>
> I am working on a portal, part of which allows users to upload files.
> Part of the array within $_FILES superglobal gives the mime type for the
> file. Is this 100% reliable / accurate? If the mime type says the file
> type is jpeg is it always right? Two reasons I want to know:
>
IIRC it relies on the information supplied by the client (if any). When I
had the same problem, rather than try to verify it was a jpg, I just
converted it to a GD file then back to a jpeg.
C.
.
- References:
- How reliable is mime type in $_FILES superglobal.
- From: splodge
- How reliable is mime type in $_FILES superglobal.
- Prev by Date: Re: How reliable is mime type in $_FILES superglobal.
- Next by Date: Re: Accessing PHP serialized data in C++
- Previous by thread: Re: How reliable is mime type in $_FILES superglobal.
- Next by thread: Re: How reliable is mime type in $_FILES superglobal.
- Index(es):
Relevant Pages
|