{"action":"closed","issue":{"url":"https://api.github.com/repos/yiisoft/yii2/issues/8665","labels_url":"https://api.github.com/repos/yiisoft/yii2/issues/8665/labels{/name}","comments_url":"https://api.github.com/repos/yiisoft/yii2/issues/8665/comments","events_url":"https://api.github.com/repos/yiisoft/yii2/issues/8665/events","html_url":"https://github.com/yiisoft/yii2/issues/8665","id":85405119,"number":8665,"title":"PHP Warning – yii\\base\\ErrorException  finfo_file(D:\\xampp\\tmp\\php7124.tmp): failed to open stream: No such file or directory","user":{"login":"djfly","id":4409731,"avatar_url":"https://avatars.githubusercontent.com/u/4409731?v=3","gravatar_id":"","url":"https://api.github.com/users/djfly","html_url":"https://github.com/djfly","followers_url":"https://api.github.com/users/djfly/followers","following_url":"https://api.github.com/users/djfly/following{/other_user}","gists_url":"https://api.github.com/users/djfly/gists{/gist_id}","starred_url":"https://api.github.com/users/djfly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/djfly/subscriptions","organizations_url":"https://api.github.com/users/djfly/orgs","repos_url":"https://api.github.com/users/djfly/repos","events_url":"https://api.github.com/users/djfly/events{/privacy}","received_events_url":"https://api.github.com/users/djfly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":{"login":"qiangxue","id":993322,"avatar_url":"https://avatars.githubusercontent.com/u/993322?v=3","gravatar_id":"","url":"https://api.github.com/users/qiangxue","html_url":"https://github.com/qiangxue","followers_url":"https://api.github.com/users/qiangxue/followers","following_url":"https://api.github.com/users/qiangxue/following{/other_user}","gists_url":"https://api.github.com/users/qiangxue/gists{/gist_id}","starred_url":"https://api.github.com/users/qiangxue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qiangxue/subscriptions","organizations_url":"https://api.github.com/users/qiangxue/orgs","repos_url":"https://api.github.com/users/qiangxue/repos","events_url":"https://api.github.com/users/qiangxue/events{/privacy}","received_events_url":"https://api.github.com/users/qiangxue/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-06-05T03:41:31Z","updated_at":"2015-06-07T06:51:32Z","closed_at":"2015-06-07T06:51:32Z","body":"```\r\n$_FILES = [\r\n    'Link' => [\r\n        'name' => [\r\n            'imageFile' => '2014-10-28_230826.png',\r\n        ],\r\n        'type' => [\r\n            'imageFile' => 'image/png',\r\n        ],\r\n        'tmp_name' => [\r\n            'imageFile' => 'D:\\\\xampp\\\\tmp\\\\php7124.tmp',\r\n        ],\r\n        'error' => [\r\n            'imageFile' => 0,\r\n        ],\r\n        'size' => [\r\n            'imageFile' => 1168,\r\n        ],\r\n    ],\r\n];\r\n```\r\n图片上传保存，应该是先$this->imageFile->saveAs($dir.$name);，后$model->save()吧？\r\n$this->imageFile->saveAs($dir.$name);后临时文件已经删除了，这个时候$model->save()里面还要验证临时文件的mime_type这不合理吧？"}}