W3C home > Mailing lists > Public > www-talk@w3.org > September to October 1997

Re: Include file name when sending a binary file

From: Steven Champeon <schampeo@hesketh.com>
Date: Mon, 08 Sep 1997 20:26:51 -0400
Message-Id: <3.0.3.32.19970908202651.00754dc4@mail.imvi.com>
To: Jeff Willden <jwillden@cc.weber.edu>, 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
Received on Monday, 8 September 1997 20:28:28 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 October 2010 18:14:23 GMT