set_header() file download problem |
CI 3.0.3. Here is my question on stackoverflow: http://stackoverflow.com/questions/34432...-size-n-kb
Further investigation revealed the fact that CI's set_header() method doesn't send 'Content-Disposition' header: In other words, $this->output->set_header() does not work, while php's native header() with the same param - works. CAUSES PROBLEM: PHP Code: $this->output->set_header('Content-Description: File Transfer'); CORRECT: PHP Code: header('Content-Description: File Transfer'); Is it bug? |
Messages In This Thread |
set_header() file download problem - by Rashid - 12-29-2015, 02:38 AM
RE: set_header() file download problem - by orionstar - 12-29-2015, 03:21 AM
RE: set_header() file download problem - by Rashid - 12-29-2015, 06:37 AM
RE: set_header() file download problem - by Rashid - 12-29-2015, 06:50 AM
RE: set_header() file download problem - by includebeer - 12-29-2015, 09:22 AM
|