You can figure out the mime-type from the extension (as umn gopherd does), but I was wondering if it would make any sense to try 'file -i'