Download MP3 rather than playing in browser

Posted on 2010-11-20
Medium Priority
Last Modified: 2012-05-10

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?
Question by:RenAndStimpy

Expert Comment

ID: 34180046
Have a look at this:


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

Accepted Solution

Montoya earned 2000 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.


Author Closing Comment

ID: 34186119
Worked perfectly thank you!

Featured Post

Creating Active Directory Users from a Text File

If your organization has a need to mass-create AD user accounts, watch this video to see how its done without the need for scripting or other unnecessary complexities.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

What You Need to Know when Searching for a Webhost Provider
In this article, we will discuss how you can secure Active Directory using free tools, and how you can choose a safe and secure Active Directory security auditing tool.
This tutorial will walk an individual through the steps necessary to configure their installation of BackupExec 2012 to use network shared disk space. Verify that the path to the shared storage is valid and that data can be written to that location:…
This tutorial will show how to configure a single USB drive with a separate folder for each day of the week. This will allow each of the backups to be kept separate preventing the previous day’s backup from being overwritten. The USB drive must be s…

624 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