From: Stephen van Egmond <svanegmond@bang.dhs.org>
To: Louis Bertrand <louis@bertrandtech.on.ca>
Cc: pgsql-php@postgresql.org
Subject: Re: download binary files to browser
Date: Sun, 7 Jan 2001 12:41:37 -0500
Message-ID: <20010107124137.C21271@bang.dhs.org> (raw)
In-Reply-To: <Pine.BSO.4.20.0101071151490.29456-100000@grendel.bts>
References: <Pine.BSO.4.20.0101071151490.29456-100000@grendel.bts>
Louis Bertrand (louis@bertrandtech.on.ca) wrote:
> What headers can I send to fill in that file name?
Look at content-disposition in the HTTP RFC.
I do this in a similar application:
header("Content-Disposition: attachment; filename=\"$original_name\"");
it helps on the end-user side if you also report the correct
MIME type for the document (i.e. application/msword).
header("Content-type: $mime");
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-php@postgresql.org
Cc: svanegmond@bang.dhs.org, louis@bertrandtech.on.ca
Subject: Re: download binary files to browser
In-Reply-To: <20010107124137.C21271@bang.dhs.org>
References: <Pine.BSO.4.20.0101071151490.29456-100000@grendel.bts> <20010107124137.C21271@bang.dhs.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox