继《ThinkPHP6.0升级到6.1之后,文件上传报 Class ‘think\facade\Filesystem‘ not found 错误的解决方案》之后,就很长一段时间没用到这个上传功能了。最近开启新项目,发现这篇博文介绍的处理方式,多少有些繁琐,于是找到下面这种处理方式。
以上次的代码为例:
use think\facade\Filesystem;
public function in
继《ThinkPHP6.0升级到6.1之后,文件上传报 Class ‘think\facade\Filesystem‘ not found 错误的解决方案》之后,就很长一段时间没用到这个上传功能了。最近开启新项目,发现这篇博文介绍的处理方式,多少有些繁琐,于是找到下面这种处理方式。
以上次的代码为例:
use think\facade\Filesystem;
public function in