httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Joshua Slive <>
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 <> 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.
> Regardless of which file they click on, he wants the default file name in
> the save window to be
> 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,

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


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message