Solved

Download MP3 rather than playing in browser

Posted on 2010-11-20
3
807 Views
Last Modified: 2012-05-10
Hello!

I have a website that has mp3's on it.  What i'm trying to do is display a link to download the mp3, although what it does instead is play the mp3 in the browser.

Is there something i can do in IIS7 to instruct it to download instead of play on an .mp3 file?
0
Comment
Question by:RenAndStimpy
3 Comments
 
LVL 5

Expert Comment

by:Iekos
ID: 34180046
Have a look at this:

http://webtips.dan.info/force.html

Its quite a bit to read but it woks.
0
 
LVL 19

Accepted Solution

by:
Montoya earned 500 total points
ID: 34180056
in IIS admin, open the directory tree that has your files.  Right click, choose properties.  choose 'http headers' tab, click 'mime types'.  click 'new' and enter 'mp3" as the file extension, and 'x-application/attachment' as the type.


0
 

Author Closing Comment

by:RenAndStimpy
ID: 34186119
Worked perfectly thank you!
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
A safe way to clean winsxs folder from your windows server 2008 R2 editions
This tutorial will give a an overview on how to deploy remote agents in Backup Exec 2012 to new servers. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as connecting to a remote Back…
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…

820 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question