NYCPHP Meetup

NYPHP.org

[nycphp-talk] Force File Download HTTP Headers and IE Issue

Chris Shiflett shiflett at php.net
Wed Sep 3 16:49:12 EDT 2003


--- "pswebcode, nyc" <psaw at pswebcode.com> wrote:
> header ("Content-Type: application/octet-stream");
> header("Content-Transfer-Encoding: Binary");

Get rid of Content-Transfer-Encoding. There is no such header. It shouldn't
affect the outcome, but it's best to simplify the problem with as few errors as
possible. :-)

> header("Content-Length: $iFileSize");
> header ("Content-Disposition: attachment; filename=$iFileName");

The filename should be quoted.

See if that makes a difference, and let us know.

Chris

=====
Become a better Web developer with the HTTP Developer's Handbook
http://httphandbook.org/



More information about the talk mailing list