$file = $_FILES[‘file’];
对象$file的属性如下:
{"name":"360截图20191122105635012.jpg","type":"image/jpeg","tmp_name":"/tmp/phpRY1SIb","error":0,"size":210620}
按照数组方式读取即可
$file[‘tmp_name’];
$file = $_FILES[‘file’];
对象$file的属性如下:
{"name":"360截图20191122105635012.jpg","type":"image/jpeg","tmp_name":"/tmp/phpRY1SIb","error":0,"size":210620}
按照数组方式读取即可
$file[‘tmp_name’];