On Thu, April 27, 2006 8:15 am, Rosen wrote:
> I have this problem with uploading images:
> I try several PHP classes for upload of files on server ( pictures in
> my
> case ), but if some user only renames some file as ".jpg" the script
> uploads the file even the file format is not .jpg - i.e. -
getimagesize() can obtain the image type as well as the dimensions of the
image. Once the file is uploaded us this to check the extension is correct
and that the image is not too large.
php.net/getimagesize
Andrew
- Original Message -
From: "Rosen" <[EMAIL PROTECTED]>
To:
Sent: Thur
2 matches
Mail list logo