搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

why is the html5 download attribute not working?

  • 1 回覆
  • 1 有這個問題
  • 1 次檢視
  • 最近回覆由 user1352615

more options

<a href="link.flac"download="link.flac"><font color="#ffffff">file name</font></a>

this is not working on firefox. however it works in opera. at first i left the name after download= empty. what am i doing wrong?

the browser is updated.

<a href="link.flac"download="link.flac"><font color="#ffffff">file name</font></a> this is not working on firefox. however it works in opera. at first i left the name after download= empty. what am i doing wrong? the browser is updated.

所有回覆 (1)

more options

nobody? is it supposed to be like that? it's not like people can't just click the right mouse button and click on "save link as" but fire fox says "the file is corrupted" on .m4a files when you click on the link. of course, people are going to ignore it. but some of them don't know better and don't know that the browser cannot say if a file is corrupted or not, without taking the file into cache and performing some kind of a scan.

thank you.