Welcome Guest, Not a member yet? Register   Sign In
pdf download wont work
#1

This was already mentioned under c4 addins->pdf customized and no solution was offered.
Chrome and Firefox can download pdfs (generated from adobe and others) to my download folder but both refuse to display in the browser,
saying the file cant be downloaded. The files display perfectly using ci3 with setheaders and force_download.
I've tried all combinations of the code below and failed. Can anybody help? The project has come to a halt because I cant print.
Code:
return $this->response
        //->setHeader('Pragma','public')
        //->setHeader('Expires','0')
        //->setHeader('Cache-Control','must-revalidate, post-check=0, pre-check=0')
        //->setHeader('Content-Disposition','inline; filename="'.$filename.'"')
        //->setContentType('application/pdf')
        //->setHeader('Content-Length',filesize($fullname))
        ->download($fullname);//'',true);//,$data);
Many thanks, Bill
Reply


Messages In This Thread
pdf download wont work - by badger - 06-18-2020, 01:20 AM
RE: pdf download wont work - by InsiteFX - 06-18-2020, 04:51 AM
RE: pdf download wont work - by badger - 06-18-2020, 06:52 AM
RE: pdf download wont work - by InsiteFX - 06-18-2020, 07:26 AM
RE: pdf download wont work - by badger - 06-21-2020, 02:20 AM
RE: pdf download wont work - by InsiteFX - 06-21-2020, 06:13 AM
RE: pdf download wont work - by InsiteFX - 06-21-2020, 07:58 AM
RE: pdf download wont work - by badger - 06-21-2020, 09:48 AM
RE: pdf download wont work - by InsiteFX - 06-21-2020, 12:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB