CodeIgniter Forums
Downloading File - Printable Version

+- CodeIgniter Forums (
+-- Forum: CodeIgniter 4 (
+--- Forum: CodeIgniter 4 Discussion (
+--- Thread: Downloading File (/showthread.php?tid=82689)

Downloading File - slookabill - 08-09-2022

I'm currently trying to export a subset of my MySQL database to be downloaded in the client as a SQLite database. In my controller, if there's no errors in moving the data, it returns
PHP Code:
          return $this->response->download('../app/dbtmp/'.$airport['Identifier'].'.sqlite3'null)->setFileName('config.sqlite3'); 
When going to the applicable page I get the following error:
CodeIgniter\CodeIgniter::displayPerformanceMetrics(): Argument #1 ($output) must be of type string, null given, called in ...vendor/codeigniter4/framework/system/CodeIgniter.php on line 500
At this point I don't know what the error could be or how to trace what could be the issue.

RE: Downloading File - datamweb - 08-10-2022

This is bug, see