改进Input类和request类的file方法

This commit is contained in:
thinkphp
2016-05-10 10:49:32 +08:00
parent c305b11d1b
commit 4a3ddd4353
2 changed files with 10 additions and 8 deletions

View File

@@ -445,7 +445,7 @@ class Request
*/
public function file($name = '')
{
return Input::data($this->file ?: $_FILES, $name);
return Input::file($name, $this->file ?: $_FILES);
}
/**