Determine MIME type (with temp work-around)