|
@@ -10,9 +10,9 @@ class File extends Auth
|
|
|
$file = request()->file('files');
|
|
|
// 移动到框架应用根目录/uploads/ 目录下
|
|
|
$info = $file->validate([ 'size'=>config('app.max_upload_file_size') ])
|
|
|
- ->move(env('root_path') . 'public' . DIRECTORY_SEPARATOR . 'uploads'. DIRECTORY_SEPARATOR . 'files');
|
|
|
+ ->move(env('root_path') . 'public' . DIRECTORY_SEPARATOR . 'uploads'. DIRECTORY_SEPARATOR . 'files2');
|
|
|
if($info){
|
|
|
- $img = '/uploads/files/' . $info->getSaveName();
|
|
|
+ $img = '/uploads/files2/' . $info->getSaveName();
|
|
|
$img = str_replace('\\', '/', $img);
|
|
|
|
|
|
$path = config("app.app_host").$img;
|
|
@@ -26,9 +26,9 @@ class File extends Auth
|
|
|
$file = request()->file('files');
|
|
|
// 移动到框架应用根目录/uploads/ 目录下
|
|
|
$info = $file->validate(config('app.max_upload_img'))
|
|
|
- ->move(env('root_path') . 'public' . DIRECTORY_SEPARATOR . 'uploads'. DIRECTORY_SEPARATOR . 'files');
|
|
|
+ ->move(env('root_path') . 'public' . DIRECTORY_SEPARATOR . 'uploads'. DIRECTORY_SEPARATOR . 'files2');
|
|
|
if($info){
|
|
|
- $img = '/uploads/files/' . $info->getSaveName();
|
|
|
+ $img = '/uploads/files2/' . $info->getSaveName();
|
|
|
$img = str_replace('\\', '/', $img);
|
|
|
|
|
|
$path = config("app.app_host").$img;
|