httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <jsl...@gmail.com>
Subject Re: [users@httpd] Default filename for downloading files.
Date Thu, 17 Nov 2005 18:53:38 GMT
On 11/17/05, William C. Mount <Mount_William_C@cat.com> 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message