I'm working on the avatar upload on my website and would like for users to be able to input an image using URL's.
How would I go about taking the image from the URL supplied in the form and checking its file format (.png, .jpg, .gif), file size (50kb max), and file dimension(100x100 max)?