Added mime-type detection and resource file handling fall through