Abir Das
Abir Das

Reputation: 41

Laravel-Excel export

I am trying to export an excel file from laravel. It works fine on my local server. But it is not working properly on the live server. It also stores the excel file in "storage->framework->laravel-excel" but not showing the download option. It throws 500 server error. I checked on my log file, it says "production.ERROR: Unable to guess the MIME type as no guessers are available (have you enabled the php_fileinfo extension?)." Please help me, how can I solve my problem.

Upvotes: 1

Views: 803

Answers (1)

Akmal Arzhang
Akmal Arzhang

Reputation: 367

You have to enable the php_fileinfo at php.ini and if you don't have access to it, ask your hosting provider to enable it for you. It is not a Laravel related issue, it is just the extension.

Upvotes: 1

Related Questions