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

Re: [Q] Changing default name in a FORM

From: Arnoud <galactus@htmlhelp.com>
Date: Tue, 08 Oct 1996 20:21:51 +0200
To: www-talk@w3.org
Message-ID: </upWy4uYOB1Y089yn@htmlhelp.com>
-----BEGIN PGP SIGNED MESSAGE-----

In article <199610080948.LAA26948@beatles.cselt.stet.it>,
mau@beatles.cselt.stet.it (Maurizio Codogno) wrote:
> I have a script which selects a file and send it to the user. It 
> is accessed via a form, with action POST. 
> Unfortunately, the file is sent with the form's name as default name,
> and the user should rename it by hand.

There's no direct solution, but you could make the files available
in a (hidden?) directory, and only send out a redirection to the
file in the form results:

Status: 302 Go look elsewhere
Location: http://yourserver.com/dir/dir/file.zip


> (I cannot use a simple hyperlink, because I have to trace the request
> and modify an internal database without looking at the logs)

As long as you don't mind someone picking out the files by hand,
this should do what you want.

Galactus

- -- 
E-mail: galactus@htmlhelp.com .................... PGP Key: 512/63B0E665
Maintainer of WDG's HTML reference: <http://www.htmlhelp.com/reference/>


-----END PGP SIGNED MESSAGE-----
Received on Tuesday, 8 October 1996 15:02:35 GMT

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