File.php
public function upload($file)
    {
        $fileName = $this->getFileName($file);
        $filePath = $this->getFilePath($file);

        $this->_file=$file;
        // move_uploaded_file(filename, destination);
    }
public function upload($file)
    {
        $fileName = $this->getFileName($file);
        $filePath = $this->getFilePath($file);

        $this->_file=$file;
        // move_uploaded_file(filename, destination);
    }
上传文件
array(1) {
["file"]=>
array(5) {
["name"]=>
string(44) "a71ea8d3fd1f413458fdd278261f95cad0c85eea.jpg"
["type"]=>
string(10) "image/jpeg"
["tmp_name"]=>
string(24) "F:\xampp\tmp\phpBA0B.tmp"
["error"]=>
int(0)
["size"]=>
int(11345)
}
}