From: <cba...@us...> - 2003-05-03 07:21:37
|
> with mod_perl, ask for a .zip file containing backuped files send (only) > this to the web browser: > > Content-Type: application/zip > Content-Transfer-Encoding: binary > Content-Disposition: attachment; filename="restore.zip" > > With IE, this shows as a web page. If a come back to previous page (the > how-do-you-restore-files page) and click on "download zip file", the > same thing happens. Try this patch (replace syswrite with print). Craig --- BackupPC/BackupPC_Admin Sun Apr 27 15:56:44 2003 +++ mod_perl/BackupPC_Admin Sat May 3 00:12:17 2003 @@ -880,7 +880,7 @@ # We use syswrite since BackupPC_tarCreate uses syswrite too. # Need to test this with mod_perl: PaulL says it doesn't work. # - syswrite(STDOUT, <<EOF); + print(STDOUT, <<EOF); Content-Type: application/x-gtar Content-Transfer-Encoding: binary Content-Disposition: attachment; filename=\"restore.tar\" @@ -917,7 +917,7 @@ # We use syswrite since BackupPC_tarCreate uses syswrite too. # Need to test this with mod_perl: PaulL says it doesn't work. # - syswrite(STDOUT, <<EOF); + print(STDOUT, <<EOF); Content-Type: application/zip Content-Transfer-Encoding: binary Content-Disposition: attachment; filename=\"restore.zip\" |