Laravel 框架 导入excel再windows里不报错,再nginx里报错 No ReaderType or WriterType could be detected.


 

 

把原来代码

$path = $request->file('file');

if (empty($path)) {
return $this->error('请选择上传的文件');
}

 

改成

$path1 = $this->request->file('file')->store('temp');
$path = storage_path('app').'/'.$path1;


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM