Validating DPI while upload
Posted on 2007-10-01
I need a system that allow user to upload images. However while the image is being uploaded, the system should check if the uploaded image is in the allowed DPI.
If I set acceptable DPI to 300, if user try to upload an image with 100 DPI it shouldn't accept.
Also I know usual way of validating file format is to check its file extension, however is there any better way to validate the file format? Maybe thru the pattern? Like illustrator have different set of pattern compare to coraldraw..