$file = request()->file($filePath);
if(empty($file))
{
return 3;
}
$uploadPath = ROOT_PATH .'images'.DS.date("Ymd",time());
if(!file_exists($uploadPath))
{
mkdir($uploadPath,777,true);
}
$info = $file->move($uploadPath.DS);
TIM图片20171029150024.png
( 12.35 KB 下载:47 次 )
最佳答案