perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Geoffrey Young <ge...@modperlcookbook.org>
Subject Re: Content Disposition header and file contents sequence...
Date Thu, 02 Mar 2006 18:57:04 GMT

> $r->headers_out->set('Content-Disposition' =>
> "attachment;filename=$downloadFilename");

try

  $r->headers_out->set('Content-Disposition' => ' inline;
filename=$downloadFilename');

> $r->send_fd($fileFH);
> $r->send_http_header();

those definitely need to be reversed - you need to send the headers before
you send any output.

--Geoff


Mime
View raw message