in reply to Using Spreadsheet::WriteExcel with mod_perl and Content-Disposition?
print "Content: $page\r\n"; print "Content-disposition: inline; filename=\"$page\"\r\n"; my $size = (-s "$page"); print "Content-length: $size\r\n"; print "Content-type: application/octet-stream\r\n"; print "\r\n"; local $/ = undef; open (F, "<$page") || die; binmode(F); binmode(STDOUT); print <F>; close(F);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: inline attachments
by one4k4 (Hermit) on Mar 15, 2001 at 05:19 UTC |