Re: download binary files to browser - Mailing list pgsql-php

From Stephen van Egmond
Subject Re: download binary files to browser
Date
Msg-id 20010107124137.C21271@bang.dhs.org
Whole thread Raw
In response to download binary files to browser  (Louis Bertrand <louis@bertrandtech.on.ca>)
Responses Re: download binary files to browser  (Louis Bertrand <louis@bertrandtech.on.ca>)
List pgsql-php
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");


pgsql-php by date:

Previous
From: Louis Bertrand
Date:
Subject: download binary files to browser
Next
From: Louis Bertrand
Date:
Subject: Re: download binary files to browser