Uploading large csv/xsls file to server using php laravel

Hi. Could anyone please tell me how can we upload the csv/xlsx file which contains a large amount of data in laravel? When I tried to upload the file it gives me server time out error. I used this

Excel::filter(‘chunk’)->load($path)->chunk(25, function($results)

But still there is server time out error. If someone knows the solution then please let me know about it. Thanks!

Increasing file size for uploading should be done through your php.ini file. Doing it via PHP won’t change a thing unless you use the ini configs. IIRC, using the ini configs only changes the configurations during execution time and it’s not permanent.


In addition to the file size setting these might be of help.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.