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

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

Include file name when sending a binary file

daemon@ATHENA.MIT.EDU (Jeff Willden)
Mon Sep 8 18:40:52 1997

Date: Mon, 08 Sep 1997 16:27:40 -0600
From: Jeff Willden <jwillden@cc.weber.edu>
To: www-talk@w3.org
Resent-From: www-talk@w3.org

I'm developing a bulletin board which accepts binary submissions via the
form file-upload capability.  When the file is downloaded from the cgi
which sends the requested file, the Content-type is
"application/octet-stream" (is there another better for sending binary
files?)

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?

Jeff Willden


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