From 9e3e5db1ef5202eafd4561418df712e6743df2c5 Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sat, 29 Dec 2012 23:35:19 +0100 Subject: [PATCH] Gallery2: Archive has a file name --- gal2/UCW/Gallery/Archive.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gal2/UCW/Gallery/Archive.pm b/gal2/UCW/Gallery/Archive.pm index 0cf8553..fb7c40b 100644 --- a/gal2/UCW/Gallery/Archive.pm +++ b/gal2/UCW/Gallery/Archive.pm @@ -25,7 +25,9 @@ sub send_archive($$) { $cnt++; } - print "Content-type: application/zip\n\n"; + print "Content-type: application/zip\n"; + print "Content-Disposition: attachment; filename=gallery.zip\n"; + print "\n"; $zip->writeToFileHandle(\*STDOUT, 0); } -- 2.39.2