Re: (possible) zip and file download problem

2001-04-23 Thread Niklas Nordebo
On Mon, Apr 23, 2001 at 12:06:06PM +0100, Jon Galliers wrote: The main problem is that the zipped file downloads as NameOfCGIFile.zip and not download.zip. I think you might like to have a look at the Content-Disposition MIME header. Something like this: print

Re: (possible) zip and file download problem

2001-04-23 Thread Merijn Broeren
Quoting Jon Galliers ([EMAIL PROTECTED]): ($file - name from database query) my $zip = Archive::Zip-new() or die couldn't create zip $!; $zip-addFile(/web/www.website.com/docs/$file) or die couldn't add file $!; $zip-writeToFileNamed('/web/www.website.com/docs/download.zip');# possible