// 默认全局过滤方法 用逗号分隔多个
'default_filter' => '',
// 'default_filter' => ['strip_tags','htmlspecialchars'],调试的时候文件还在的
后端接收到请求后文件被过滤掉了
[ info ] [ HEADER ] array (
'content-type' => 'multipart/form-data; boundary=----WebKitFormBoundaryU7CiL0p2QdUwCqzj',
'content-length' => '423',
'x-original-url' => '/api-upload-upload.html',
'upgrade-insecure-requests' => '1',
'origin' => 'http://localhost:8088',
'user-agent' => 'Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/52.0.2743.116 Safari/537.36',
'referer' => 'http://localhost:8088/booth/index/add_booth?',
'host' => 'localhost:8088',
'accept-language' => 'zh-CN,zh;q=0.8',
'accept-encoding' => 'gzip, deflate',
'accept' => 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8',
'connection' => 'keep-alive',
'cache-control' => 'max-age=0',
)
[ info ] [ PARAM ] array (
)
[ info ] [ RUN ] app\api\controller\Upload->upload[ D:\Teamwork\NewSite\application\api\controller\Upload.php ]
[ info ] [ LOG ] INIT File
[ error ] [1]Call to a member function move() on a non-object[D:\Teamwork\NewSite\application\api\controller\Upload.php:17] 最佳答案