使用phar打包后上传文件访问报404 不打包直接源代码启动正常打包成phar后 访问上传文件就404了
参考文档 https://www.workerman.net/doc/webman/others/phar.html
'public_path' => base_path(false) . DIRECTORY_SEPARATOR . 'public', 改用相对路径
参考文档 https://www.workerman.net/doc/webman/others/phar.html
'public_path' => base_path(false) . DIRECTORY_SEPARATOR . 'public',
改用相对路径