问题描述
Laravel图片上传到Storag路径和我;我试图将图像存储到公共路径
我试图将iamge存储到公共目录中有错误发生
这是错误:
CompanyController.php第325行中的FatalThrowableError:
调用成员函数move()on null
这是我的代码:
$ getimageName = time()。 '。' $请求 - > pic-> getClientOriginalExtension();
$ request-> file-> move(public_path('image'),$ s3_id);
什么我试过了:
Laravel图像上传到Storag路径和我;我试图将图像存储到公共路径
我正在尝试将iamge存储到公共目录时出现错误
这是错误:
CompanyController.php第325行中的FatalThrowableError:
调用成员函数move()on null
这是我的代码:
$ getimageName = time()。 '。' $请求 - > pic-> getClientOriginalExtension();
$ request-> file-> move(public_path('image'),$ s3_id);
Laravel image upload to Storag path and I;m trying to storage the image into public path
I'm trying to store the iamge into public directory have error occure
This is the Error :
FatalThrowableError in CompanyController.php line 325:
Call to a member function move() on null
This is my code :
$getimageName = time() . '.' . $request->pic->getClientOriginalExtension();
$request->file->move(public_path('image'), $s3_id);
What I have tried:
Laravel image upload to Storag path and I;m trying to storage the image into public path
I'm trying to store the iamge into public directory have error occure
This is the Error :
FatalThrowableError in CompanyController.php line 325:
Call to a member function move() on null
This is my code :
$getimageName = time() . '.' . $request->pic->getClientOriginalExtension();
$request->file->move(public_path('image'), $s3_id);
推荐答案
这篇关于在laravel图片上传中,我试图将图片上传到公共目录有问题请建议我一个正确的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!