问题描述
我已经使用laravel干预库来存储图像文件。我无法访问存储中的图像。
Intervention\Image\Exception\NotReadableException
Image source not readable
控制器
$imagePath1 = request('image1')->store('productsImg','public');
$thumbPath1 = request('image1')->store('productsImg/thumbnail','public');
$image1 = Image::make(("storage/{$thumbPath1}"))->fit(600,600);
在使用xamp的本地项目中,我可以使用PHP artisan storage:link解决此错误。 但是我没有服务器的终端访问权限。因此,我无法运行该命令。如何在不使用终端的情况下提供存储许可?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)