IIS FTP Server - Force ftp download of images

This is Interesting: Free IT Magazines  
Home > Archive > IIS FTP Server > September 2006 > Force ftp download of images





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Force ftp download of images
panda

2006-09-06, 1:29 am

Hi,

Is it possible to make the download dialog box show when a user selects on a
link to view an image?

i have a link

<a href="ftp://file1.jpg">download</a>

When the user clicks on theis link, instead of showing the image, the user
is presented with a download dialog box that asks the user where they would
like to download this image.

Thanks
Bernard Cheah [MVP]

2006-09-16, 1:42 pm

this is pure mime typing handling, since browse is able to display it, it
will show it on the page.
if you need download, stream it down to client. google "asp binary stream"
or
How To Raise a "File Download" Dialog Box for a Known MIME Type
http://support.microsoft.com/?id=260519


--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"panda" <panda@discussions.microsoft.com> wrote in message
news:6A825030-D3ED-42D5-974C-EE16148F6A09@microsoft.com...
> Hi,
>
> Is it possible to make the download dialog box show when a user selects on
> a
> link to view an image?
>
> i have a link
>
> <a href="ftp://file1.jpg">download</a>
>
> When the user clicks on theis link, instead of showing the image, the user
> is presented with a download dialog box that asks the user where they
> would
> like to download this image.
>
> Thank



panda

2006-09-24, 7:39 pm

Hi,

thanks for the tips. I had a look at microsoft's support page and tried to
implement the content-disposition header. However, i have several images on
the page and i want the internet browser to open the download dialog when the
uer clicks on the hyperlink that directs them to the image source (located on
a ftp server). Is it possible?

I noticed that the content disposition header applies to the entire page. so
when a user loads the page it will bring up the download dialog box before
the page loads.

Wilbur

"Bernard Cheah [MVP]" wrote:

> this is pure mime typing handling, since browse is able to display it, it
> will show it on the page.
> if you need download, stream it down to client. google "asp binary stream"
> or
> How To Raise a "File Download" Dialog Box for a Known MIME Type
> http://support.microsoft.com/?id=260519
>
>
> --
> Regards,
> Bernard Cheah
> http://www.iis.net/
> http://www.iis-resources.com/
> http://msmvps.com/blogs/bernard/
>
>
> "panda" <panda@discussions.microsoft.com> wrote in message
> news:6A825030-D3ED-42D5-974C-EE16148F6A09@microsoft.com...
>
>
>

Bernard Cheah [MVP]

2006-09-29, 1:43 am

Been busy Not too sure about this. wasn't the header can be configure
only to certain extension?
you can also try IE group for more advise.

--
Regards,
Bernard Cheah
http://www.iis.net/
http://www.iis-resources.com/
http://msmvps.com/blogs/bernard/


"panda" <panda@discussions.microsoft.com> wrote in message
news:B38F3FBC-D3D3-4993-8EF0-50284EFB3C4F@microsoft.com...[vbcol=seagreen]
> Hi,
>
> thanks for the tips. I had a look at microsoft's support page and tried to
> implement the content-disposition header. However, i have several images
> on
> the page and i want the internet browser to open the download dialog when
> the
> uer clicks on the hyperlink that directs them to the image source (located
> on
> a ftp server). Is it possible?
>
> I noticed that the content disposition header applies to the entire page.
> so
> when a user loads the page it will bring up the download dialog box before
> the page loads.
>
> Wilbur
>
> "Bernard Cheah [MVP]" wrote:
>


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com