...
|
...
|
@@ -650,8 +650,8 @@ class PersonController extends RestBaseController |
|
|
foreach($files as $k=>$file){
|
|
|
//移动到框架应用根目录/public/uploads/ 目录下
|
|
|
$moveUrl = ROOT_PATH . 'public' . DS . 'uploads';
|
|
|
//允许文件大小20M
|
|
|
$info = $file->validate(['size'=>20480000,'ext'=>'jpg,png,gif,mp3,pcm,wma,wav,mp4,avi,wmv,rm,rmvb,mkv,mov'])->move($moveUrl);
|
|
|
//允许文件大小200M
|
|
|
$info = $file->validate(['size'=>204800000,'ext'=>'jpg,png,gif,mp3,pcm,wma,wav,mp4,avi,wmv,rm,rmvb,mkv,mov'])->move($moveUrl);
|
|
|
if($info){
|
|
|
//上传至七牛云
|
|
|
$url = str_replace('//', '/', str_replace('\\', '/', $info->getSaveName())); //20190602/1214564654.jpg目录
|
...
|
...
|
|