简体   繁体   English

在Android浏览器上下载mp3的链接

[英]Download Link of mp3 on Android Browser

I am trying to make a download link for mp3 on my website. 我正在尝试在我的网站上制作mp3的下载链接。 The link is like this: 链接是这样的:

<a href="URL_TO_MP3" download="FILENAME.mp3">DOWNLOAD</a>

On all the others browsers, this link is ok. 在所有其他浏览器上,此链接都可以。 Only the Android browser doesn't function properly. 仅Android浏览器无法正常运行。 The download begins and loads forever. 下载开始并永久加载。 No single extension is on the name of the download on my tablet (Samsung Galaxy Tab 3) when I test it. 测试时,平板电脑(Samsung Galaxy Tab 3)上的下载名称没有单个扩展名。 It just writes the name of the file without its extension. 它只是写文件名而没有扩展名。 My client uses just Android Browser... 我的客户仅使用Android浏览器...

How would I fix this? 我该如何解决?

EDIT : Yes, but the download ends never... The file is downloading but there isn't his extension, so the download ends never... Do you know what I can do ? 编辑:是的,但是下载永远不会结束...文件正在下载,但是没有他的扩展名,所以下载永远不会结束...你知道我能做什么吗?

Unfortunately you can't download it with a simple click. 不幸的是,您无法通过单击轻松下载它。 This is a "feature" of the browser. 这是浏览器的“功能”。

You have to teach your user to Long press the link - it'll pop a menu, including "Save As" which will allow them to save it. 您必须教您的用户长按链接-它会弹出一个菜单,其中包括“另存为”,这将使他们可以保存菜单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM