Matt --
...and then Matt Hedges said...
%
% Hello all,
% After playing around with the options, I've found that the following method
% for uploading something with constraints is the easiest...
I don't get it... You have to upload in order to get to the server, so
all you're doing is returning
Matt --
...and then Matt Hedges said...
%
% ?
He's telling you to search the list archives. This is not new ground
you're breaking here.
Just call getimagesize() on the temp file and see what type it reports
back.
HTH & HAND
:-D
--
David T-G * There is too much animal
?
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 16 January 2004 23:55, Matt Hedges wrote:
>
> > How would I do that? I mean, what would I put instead of
> >
> > > > if ($_FILES['imagefile']['type'] != "image/pjpeg")
>
> > > the browser sets, it is more reli
On Friday 16 January 2004 23:55, Matt Hedges wrote:
> How would I do that? I mean, what would I put instead of
>
> > > if ($_FILES['imagefile']['type'] != "image/pjpeg")
> > the browser sets, it is more reliable to get the image type from
> > getimagesize().
--
Jason Wong -> Gremlins Associate
Thanks Jason.
How would I do that? I mean, what would I put instead of
> > if ($_FILES['imagefile']['type'] != "image/pjpeg")
thanks
"Jason Wong" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> On Friday 16 January 2004 10:32, Matt Hedges wrote:
>
> > if ($_FILES['imagefile']['t
On Friday 16 January 2004 10:32, Matt Hedges wrote:
> if ($_FILES['imagefile']['type'] != "image/pjpeg")
The 'type' in $_FILES is provided by the browser. IIRC only IE uses
"image/pjpeg" whilst other browsers use "image/jpeg". But regardless of what
the browser sets, it is more reliable to ge
6 matches
Mail list logo