Add option to override automatic mime type detection