[#XDSB-27] Make mimetype checking configurable.