Posted by bill on 02/20/07 21:58
bill wrote:
> Can anyone help. I am using the following code to check that jpg image
> only can be uploaded
>
> if ($_FILES['userfile']['type'] != 'image/jpeg')
> {
> $msg = 'Problem: file is not jpg';
> }
>
> when uploading a jpg or jpeg this works fine in firefox but when i try
> to upload a jpg using internet explorer an error is produced saying that
> it is not a jpg when in fact it is.
> Can anyone help
> Thanks
> bill
Point taken over mime types. I was just trying to find an easy solution
to allow jpgs on to site. At this stage I am trying to get the site up
and running for testing. Will let you know how it develops. Thanks for
your time and advice it is appreciated.
Bill
Navigation:
[Reply to this message]
|