[英]Web link to download with Android phone?
In my web site i make link like <a href="test.txt">DOWNLOAD</a>
. 在我的网站上,我创建了<a href="test.txt">DOWNLOAD</a>
类的链接。 And when i open this site on my Android phone and click on link, standart browser opens txt file. 当我在Android手机上打开此站点并单击链接时,standart浏览器将打开txt文件。 I want to download file and not open. 我想下载文件而不打开。
What i may to do for that? 我该怎么办?
Thanks! 谢谢!
我认为您需要在服务器设置上设置MIME类型。
By default, the text.txt is linked with a viewer hence if will download and open. 默认情况下,text.txt与查看器链接,因此将下载并打开。
Secondly, it would be stored in downloads folder on your sdcard. 其次,它将存储在sdcard的downloads文件夹中。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.