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>

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.


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

Received on Tuesday, 8 October 1996 15:02:35 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:32:59 UTC