Hello, that's usually not possible because your webserver can't access the image on your computer; a possible solution might be to determine the image size via javascript and submit it with the form, so you can accept or deny the image upload in your php script - problem: with javascript running on client side, this is not foolproof. Anyways i don't know exactly how to solve it with javascript even, so please correct me, if i'm talking crap here. Best regards, -sd On Wed, Oct 13, 2004 at 07:37:29AM -0700, Mag wrote: > The problem with the above is I can only get the > dimensions AFTER the file has been uploaded and is on > disk,which is quite a pain in the ... coz I want to > accept only images that are smaller than x pixels > width and then i have to tell the client that their > upload failed coz their image is too big...is there > any way to get the dimensions before the upload is > done? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php