There is a way to do it with IIS and Virtual Directories. If you create a 
virtual directory that points to the directory where the mp3s are (for example 
"mp3download") and add the following to the header in IIS, the file will be 
served as a download and there will be no work for the CF server.

Name: Content-disposition
Value:  attachment;

If there are very few downloads, it wont matter which way you do it, but if the 
files are large and you want to avoid having CF read them and serve them, you 
can use this alternate method.

>I just know the minute I ask this i'm going to remember the answer,  but .. .
>
>I have a member-only page with some mp3 downloads on it.  I want to
>force them to download rather than attempt to play in the browser.
>(these users arent very computer savvy and i'd rather not have to
>teach them right-click except if you're using mac or if the browser is
>firefox etc etc).
>
>How can i force the link to the mp3 to open the save dialog rather
>than attempt to play it in the browser?
>
>
>-- 
>Cheers
>Mike Kear
>Windsor, NSW, Australia
>Adobe Certified Advanced ColdFusion Developer
>AFP Webworks
>http://afpwebworks.com
>ColdFusion, PHP, ASP, ASP.NET hosting from AUD$15/month

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Deploy Web Applications Quickly across the enterprise with ColdFusion MX7 & 
Flex 2
Free Trial 
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJU

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:283199
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to