We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm sorry for my bad english.
When I use export method with xlsx format, it downloaded xls extension.
So, I fix setHeaders method like this.
private function setHeaders() { // Set the headers switch($this->ext) { case 'xlsx': header('Content-type: application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'); break; case 'csv': header('Content-type: application/csv'); break; default: // xls header('Content-Type: application/vnd.ms-excel'); break; } header('Content-Disposition: attachment;filename="' . $this->title . '.'. $this->ext .'"'); header('Cache-Control: max-age=0'); header('Cache-Control: max-age=1'); header('Expires: Mon, 26 Jul 1997 05:00:00 GMT'); // Date in the past header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT'); // always modified header('Cache-Control: cache, must-revalidate'); // HTTP/1.1 header('Pragma: public'); // HTTP/1.0 }
The text was updated successfully, but these errors were encountered:
Set headers based on file ext && fixes issue #32
9cc5f67
Your requested sheet index: 1 is out of bounds.
No branches or pull requests
I'm sorry for my bad english.
When I use export method with xlsx format, it downloaded xls extension.
So, I fix setHeaders method like this.
The text was updated successfully, but these errors were encountered: