Modify the artifact viewer to base the mimetype off of artifact content,
not the artifact name.