Image Download

Image Download

am 28.05.2007 19:20:08 von Fravo

Hi all!
I want to put a non-html file out on my web server but I don't want
the web browser to display the file (and then make the user go to
"file", then "save as", but rather to automatically bring up the "SAVE
AS" screen for the user to download the file instead. I want to this
in only one folder in the server...

I didn`t find anything about that (maybe I don't know how to search
hehehe).

Re: Image Download

am 28.05.2007 19:52:03 von petersprc

With mod_headers you could do:


header set content-disposition "attachment; filename=%
{REQUEST_FILENAME}"


On May 28, 1:20 pm, Fravo wrote:
> Hi all!
> I want to put a non-html file out on my web server but I don't want
> the web browser to display the file (and then make the user go to
> "file", then "save as", but rather to automatically bring up the "SAVE
> AS" screen for the user to download the file instead. I want to this
> in only one folder in the server...
>
> I didn`t find anything about that (maybe I don't know how to search
> hehehe).

Re: Image Download

am 30.05.2007 03:58:13 von Fravo

To do this, I need to add the module mod_headers, I compiled my apache
without it, so I need to recompile? When I loaded this module in
httpd.conf it didn't work because it says I don't have mod_headers.so,
So, how can I add this module without compile apache? And, if I really
need to recompile, is there any problem? Is just:
../configure --with-blablabla
make
make install

thx for your help.
--
Fravo

On May 28, 2:52 pm, petersprc wrote:
> With mod_headers you could do:
>
>
> header set content-disposition "attachment; filename=%
> {REQUEST_FILENAME}"
>

>
> On May 28, 1:20 pm, Fravo wrote:
>
> > Hi all!
> > I want to put a non-html file out on my web server but I don't want
> > the web browser to display the file (and then make the user go to
> > "file", then "save as", but rather to automatically bring up the "SAVE
> > AS" screen for the user to download the file instead. I want to this
> > in only one folder in the server...
>
> > I didn`t find anything about that (maybe I don't know how to search
> > hehehe).