我安装了Laravel并创建了一个表单。我已经完成了与Laravel相关的所有配置。我选择并上传我创建的excel文件,然后得到以下错误。
PHP版本: 8.1.7
Laravel版本: 9.11
PHP
已启用压缩
Zip版本1.19.5
Libzip报头版本1.8.0
Libzip库版本1.9.0
Could not find zip member zip:///Users/dev/Sites/exaan/storage/framework/cache/laravel-excel/laravel-excel-s3kqNFqinyEPG6SJRC6c3HA1qKfCW0Bk.xlsx#_rels/.rels
发布于 2022-06-25 19:07:17
我通过配置文件名解决了这个问题,如下所示。
public function importPost()
{
Excel::import(new AccountStatementsImport, $request->file('file')->store('temp'));
return back();
}
https://stackoverflow.com/questions/72736601
复制相似问题