{"action":"created","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/9888","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/9888/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/9888/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/9888/events","html_url":"https://github.com/yiisoft/yii2/issues/9888","id":110922122,"number":9888,"title":"model rule  - 'file' extensions seem not 100% work","user":{"login":"ScottHuangZL","id":8861324,"avatar_url":"https://avatars.githubusercontent.com/u/8861324?v=3","gravatar_id":"","url":"https://api.github.com/users/ScottHuangZL","html_url":"https://github.com/ScottHuangZL","followers_url":"https://api.github.com/users/ScottHuangZL/followers","following_url":"https://api.github.com/users/ScottHuangZL/following{/other_user}","gists_url":"https://api.github.com/users/ScottHuangZL/gists{/gist_id}","starred_url":"https://api.github.com/users/ScottHuangZL/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ScottHuangZL/subscriptions","organizations_url":"https://api.github.com/users/ScottHuangZL/orgs","repos_url":"https://api.github.com/users/ScottHuangZL/repos","events_url":"https://api.github.com/users/ScottHuangZL/events{/privacy}","received_events_url":"https://api.github.com/users/ScottHuangZL/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/yiisoft/yii2/labels/status:need%20more%20info","name":"status:need more info","color":"d4c5f9"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-10-12T07:38:45Z","updated_at":"2015-10-12T10:39:26Z","closed_at":"2015-10-12T10:39:26Z","body":"Dear Yii2 Team,\r\n\r\nI try to upload file with below model.  It is work tofilter xls/zip and so on, however, the extensions limitation failed for outlook .msg files.\r\nIt allow select .msg file, but failed to pass validate model, and then cannot upload.\r\n\r\nCan you help to look into for this issue? Thanks.\r\n\r\n```php\r\npublic function rules()\r\n    {\r\n        return [\r\n            [['excelFile'], 'file','skipOnEmpty' => false\r\n                ,'extensions' => 'xls, xlsx, xlsm, msg, zip, 7z, rar'\r\n                ,'maxSize'=>1024*1000 //1M\r\n//                , 'mimeTypes' =>[ 'xls' => 'application/vnd.ms-excel'] //text/plain, image/png\r\n            ],\r\n        ];\r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/comments/147362822","html_url":"https://github.com/yiisoft/yii2/issues/9888#issuecomment-147362822","issue_url":"https://api.github.com/repos/yiisoft/yii2/issues/9888","id":147362822,"user":{"login":"samdark","id":47294,"avatar_url":"https://avatars.githubusercontent.com/u/47294?v=3","gravatar_id":"","url":"https://api.github.com/users/samdark","html_url":"https://github.com/samdark","followers_url":"https://api.github.com/users/samdark/followers","following_url":"https://api.github.com/users/samdark/following{/other_user}","gists_url":"https://api.github.com/users/samdark/gists{/gist_id}","starred_url":"https://api.github.com/users/samdark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samdark/subscriptions","organizations_url":"https://api.github.com/users/samdark/orgs","repos_url":"https://api.github.com/users/samdark/repos","events_url":"https://api.github.com/users/samdark/events{/privacy}","received_events_url":"https://api.github.com/users/samdark/received_events","type":"User","site_admin":false},"created_at":"2015-10-12T10:39:26Z","updated_at":"2015-10-12T10:39:26Z","body":"We're importing Apache mime types: https://svn.apache.org/repos/asf/httpd/httpd/trunk/docs/conf/mime.types. There's no plan to add more types except if the file is updated by Apache project."}}