强制下载而不是FF中的mp3文件流 [英] Force download instead of streaming of mp3 file in FF
本文介绍了强制下载而不是FF中的mp3文件流的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
正如标题所述,我想下载一个mp3文件,而不是在Firefox中播放.
As the title says, I'd like to download a mp3-file instead of playing it in Firefox.
我这样做是这样的:
<a href="http://test.com/path/to/my/file.mp3" download></html>
在所有其他浏览器中,文件已下载,只有Firefox开始播放音频文件,而不是询问我是否要将其保存到硬盘上.
In all other browsers the file is downloaded, only Firefox starts playing the audio file instead of asking me if I would like to save it to my hard disk.
推荐答案
写此
<a href="http://test.com/path/to/my/file.mp3" download></html>
错误
应该是
<a href="http://test.com/path/to/my/file.mp3" download="file.mp3">download</a>
这篇关于强制下载而不是FF中的mp3文件流的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文