allow file format pattern e.g. application/vnd.ms-excel (#232)
allow multiple dots (#232)
Merge pull request #242 from FuhuXia/master

allow file format pattern e.g. application/vnd.ms-excel (#232)