I have an upload control for uploading the images to the server, but before uploading I just want to make sure if the images are of correct dimensions.
Is there anything on client side that can be done with JavaScript?
I have an upload control for uploading the images to the server, but before
Share
You could check them before submitting form:
This only works on modern browsers so you still have to check the dimensions on server side. You also can’t trust
the client so that’s another reason you must check them server side anyway.