learningProcess
asked on
Validating DPI while upload
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.
EG:
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..
EG:
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..
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
Computer101
EE Admin