<?php
$file = Request::file('image');//获取表单的上传数据
$info = Filesystem::putFile('topic', $file);//目录在 runtime/storage/toppic/时间/文件
//如果想更改上传文件的默认配置,在 config/filesystem.php 中配置;
'root' => app()->getRuntimePath(
thinkphp6 上传
最新推荐文章于 2024-02-14 22:38:12 发布