[eluser]louisl[/eluser]
I'm creating a zip file to download.
Code:
$this->zip->read_dir(SITE_PATH.'/media/feeds/rightmove/', FALSE, '/');
Then downloading with:-
$this->zip-download($this->BRANCH_ID.date('Ymd').'01.zip');
To my understanding and what I'm trying to achive is that this should download a zip file that when opened would have no diectories and just expand the files.
The zip file name is fine eg. 99XX992011042701.zip and downloads, but the files inside all become prefixed with the server path minus slashes eg.
nfs_securejmysitenamemediafeedsrightmove99XX99_416_IMG_00.jpg instead of the intended image name 99XX99_416_IMG_00.jpg
I should probaly note most of this job isn't in CodeIgniter but I'm using the CI zip library class and download helper with the intention of refactoring to CI later.
Anyone have any ideas on this?