Upload images with certain properties

Hi, I’ve got a client who is planing a photo contest. He wants the winners to be printed on big banners at the en of the competition so he has asked for the image properties to be A3 size at 300ppi, no more no less. He wants all images to be validated “on the fly” when users upload them and reject images that are out of these specs.
Is there a way to do this?

Thanks.

The size in pixels of such an image is 3508 X 4960. In PHP you can get this info using the function getimagesize() (after submitting). You can submit your picture using Ajax: create an “onchange” event, and send a request to a page which will retrieve the MIME type and size of the picture.

To learn how to deal with file uploads, click here.