[eluser]leighmarble[/eluser]
Solved...
DERP, NEVERMIND!
Both browsers d/l the file with the correct name - and when unzipped, the folder is named "002" in both cases.
***
Quote:Using the standard Zip Encoding class in CI 2.1.2, I am trying to set up downloading for a folder of HTML files.
With Firefox, the download works with the correct Zip file name (as given in the zip->download function). However, in Safari, the download file is given the name of the original folder of files.
This code is in operation, so you can try it for yourself on this page:
http://www.refusesoftware.com/documentation
Here's the pseudo-code I'm using:
Code:
$this->zip->read_dir('filepath/002/', FALSE);
$this->zip->download('Lowender_Docs.zip')
With Firefox, it downloads correctly as "Lowender_Docs.zip". In Safari, it downloads (and automatically unzips) into a folder named "002".
Can anyone else corroborate? I haven't tried it on other browsers yet.
Thank you,
Leigh