Reputation: 1639
Hell friends,
I am running a very basic example of HTML5 download attribute to download a mp3 file. That example is working on Chrome but not working on FF (24).
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr">
<head>
<title>HTML5 download Attribute Example</title>
<meta name="description" value="" />
</head>
<body>
<a href="SOME_VALID_PATH/Intro.mp3" download="Intro.mp3">Download file</a>
</body>
</html>
in FF it is playing that mp3 rather then downloading it. How ever other examples of download is working on that FF from other demo sites like http://davidwalsh.name/demo/html5-download.php is working.
Upvotes: 1
Views: 601
Reputation: 1131
FireFox has a default setting to play mp3 files.
You can enter about:config in FF:s address bar to access this setting. The setting itself is named "media.windows-media-foundation.enabled"
So in the end it's a user configuration option whether to download or play - even if FireFox makes a default decision for you. I think, in FireFox, you can "long click" to download the file instead of playing it.
Looking at the specification I think the download attribute should override the FireFox option, so if this still happends I think FireFox is not behaving the way it should.
Upvotes: 1