On 11/17/05, William C. Mount <[EMAIL PROTECTED]> wrote:
> Hello everyone,
>    I've got an apache 2 webserver that's sole purpose is to serve files for
> downloading.  My customer wants the ability to click on anyfile and in the
> save window, have a default file name already exist.
>
>
> for example, i have 5 files in the directory.
>
> xxx.zip
> yyy.zip
> zzz.zip
> aaa.zip
> bbb.zip
>
>
> Regardless of which file they click on, he wants the default file name in
> the save window to be production-zipfile.zip
>
> Is there anyway in apache 2 to do that?

I know of two things you can do to help.  You may need to combine the
two to get consistent results across browsers:

1. Set "AcceptPathInfo On"
and then instead of requesting http://yoursite.example.com/yyy.zip,
request http://yoursite.example.com/yyy.zip/production-zipfile.zip

2. Use mod_headers to send the Content-Disposition head with the
filename= option.  Something like
Head Add Content-Disposition filename=production-zipfile.zip

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [EMAIL PROTECTED]
   "   from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to