[10965] in www-talk@info.cern.ch

home help back first fref pref prev next nref lref last post

Re: Include file name when sending a binary file

daemon@ATHENA.MIT.EDU (Steven Champeon)
Mon Sep 8 20:39:40 1997

Date: Mon, 08 Sep 1997 20:26:51 -0400
To: Jeff Willden <jwillden@cc.weber.edu>, www-talk@w3.org
From: Steven Champeon <schampeo@hesketh.com>
In-Reply-To: <34147BC8.CECAAED8@cc.weber.edu>
Resent-From: www-talk@w3.org

At 04:27 PM 9/8/97 -0600, Jeff Willden graced us with:
> When this happens, the browser saves the file to disk unless the user
> has defined a helper application for this content-type.  But the default
> file name is the name of the cgi.  Can a client-side default filename be
> specified in the http header?

Try this. 

Content-Disposition: inline; filename=filename.ext
Content-Length: [real length]
Content-Type: content/type

File contents begin here.

HTH,
Steve


--
Steven Champeon                  | It is very dark. You are
http://www.hesketh.com/schampeo/ | likely to be eaten by a grue.
http://www.jaundicedeye.com      |           - Zork


home help back first fref pref prev next nref lref last post