Apothem
06-09-2010, 07:24 AM
How do I use jQuery (or ordinary JS) to:
Allow someone to "Attach" an image and have it loaded + check the dimensions of it WITHOUT submitting the image to the server.
AND
Allow someone to paste/type in an image URL + have it loaded + check the dimensions of it?
What I want to do is allow someone to try to upload an image only on the condition that their local/remote file fits a certain dimension... but I don't want to have it submitted to my server until that condition has been validated via the user's JS/jQuery.
Allow someone to "Attach" an image and have it loaded + check the dimensions of it WITHOUT submitting the image to the server.
AND
Allow someone to paste/type in an image URL + have it loaded + check the dimensions of it?
What I want to do is allow someone to try to upload an image only on the condition that their local/remote file fits a certain dimension... but I don't want to have it submitted to my server until that condition has been validated via the user's JS/jQuery.