Given the URL of an image—on a domain which I control—how can I determine the mimetype of that image via client-side JavaScript?
There is no reliably available file extension as part of the URL.
I would strongly prefer to not have to build a server-side solution if possible (e.g., upload the image to a server and have it check for mimetype).