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.zi
On Mon, Apr 23, 2001 at 12:28:43PM +0100, Jon Galliers wrote:
> Cheers, that worked a treat. I must admit I've never even heard
> of "Content-Disposition:", what exactly is it, and where can i find out
> more information?
See RFC 2183 and RFC 2616. It's not officially part of HTTP, but is wide
At 01:04 PM 4/23/01 +0200, you wrote:
>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.
>
>Someth
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 "Content-type:application
I asked a question a couple of weeks ago about using Archive::Zip, and
although my script does work, I still have a few queries about it; I wonder
if anyone can shed any light.
The basic idea is that there are files of multiple formats (.doc, .pdf,
.etc) that need to be downloaded through a us