Hi, i am detecting images on my webpage with javascript document.images function which returns an rray of images. Is there any way to get the mime type of the image from this since i am not using any extension names on images which are loading?
+3
A:
I don't think this is possible, apart from requesting the image again in jQuery and trying to use a MIME type check on the data. (You might be able to send a HEAD request and get whatever Content-type was returned)
webdestroya
2010-05-06 19:41:05
an AJAX HEAD request is the only thing I too can think of.
Dormilich
2010-05-06 19:50:41