Before sending the file, you should send header( at least two )
- "Content-Type:application/save" -> this header force client browser to
pop up download-window
- "Content-Disposition:filename=******" -> this header just inform the
name of file to the client browser
- Then send the content of image file
(Of course, you should open the file handle to read the content)
Shin Kyoun (Stanley) Choi
=========================================================================
> hi folks,
> I have got I photo-database, where the big photographs shouldn't be
shown
> by the browser when you click on the thumbs. I want the browser to pop
up
> the download-window when I click a thumb-photo in order to download the
> 300 dpi photo.
> Can anybody help me please?
> thanx a lot in advance,