Welcome Guest, Not a member yet? Register   Sign In
download all pdf files using zip
#1

I want to download all uploaded files from db using zip method

Code:
$this->load->library('zip');
 $filename = 'example.txt';
 $appno=10001;
         //  $filedata = 'This is an example file. Codeigniter zip class is
                      //  used to zip, save and download the file';
           $filedata = $this->User_Model->getRows1($appno);

           $this->zip->add_data($filename, $filedata);
           
         
           $this->zip->archive('/zippedfiles/example_backup.zip');  

           
           $this->zip->download('example_backup.zip');


Code:
   $fileInfo = $this->User_Model->getRows($appno);  
   $file='uploads/files/'.$fileInfo[0]['file_name'];    
   force_download($file,NULL);


need help
Reply
#2

@kvanaraj,

Here you go... https://stackoverflow.com/questions/4911...iple-files
Reply
#3

(09-19-2018, 12:41 PM)php_rocs Wrote: @kvanaraj,

Here you go... https://stackoverflow.com/questions/4911...iple-files

only single file download. i want multiple files to be downloaded.
Reply




Theme © iAndrew 2016 - Forum software by © MyBB