Does anyone know of a simple way of detecting in Javascript if a given file is an image or not? I need to decide whether to load it into an <img> tag and provide resize buttons or not. Is checking a list of files extensions the only way? Regards, Roland