About laravel project excel file upload to local

1. First, import the corresponding class library package in the composer.json file

 Execute composer update pfinal/excel file in the project directory

2. Then you can import the corresponding excel.php file and pay attention to define the uploaded path in env

3 Then at this time, an encrypted path file will be returned to the front end

If the problem of ZipArchive::close(): Failure to create temporary file: No such file or directory occurs during the interface process, you can try to create an excel folder under the storage directory under the project directory to solve it.

3. If you parse the file first and see it, you can add a file download interface to the front end

 

 

Guess you like

Origin blog.csdn.net/qq_42082023/article/details/120949104