[英].lnk File downloading as .download in Chrome and it failed to download in first attempt in Mozilla
I am working on system in which i am creating dynamic shortcut file of .lnk extension. 我在正在创建.lnk扩展名的动态快捷方式文件的系统上工作。
code as below 代码如下
<form class="form-horizontal"><div class="form-body">
<div class="form-group">
<label class="control-label col-md-3">Date</label>
<div class="col-md-3">
<input class="form-control form-control-inline input-medium date_picker" size="16" type="text" value="">
</div>
</div>
</div>
<div class="col-md-offset-3 col-md-9">
<a href="http://192.10.21.20/nikhil_v2/theme/templates/pages/Downloads/Daily Report/2019/03/12/nikhil_report_-_12_Mar_2019.lnk" target="_blank" id="submit" class="btn purple"><i class="fa fa-check"></i> DOWNLOAD</a>
</div>
</form>
In chrome browser after click on download button, file will get downloaded in browser but at the time of saving file it changes its extension from .lnk to .download automatically. 在Chrome浏览器中点击下载按钮后,文件将在浏览器中下载,但在保存文件时,它会自动将其扩展名从.lnk更改为.download。
While running same page in Firefox browser the file starts to download and failed to download. 在Firefox浏览器中运行同一页面时,文件开始下载,但下载失败。 after retrying to download this file will get downloaded successfully and it can open the correct file. 尝试下载后,此文件将成功下载,并且可以打开正确的文件。
if same code is executed in explorer browser then error will not occur and file downloaded successfully and can be accessible. 如果在资源管理器浏览器中执行相同的代码,则不会发生错误并且文件已成功下载并且可以访问。
I want to download same lnk file in all of the browser. 我想在所有浏览器中下载相同的lnk文件。
Kindly help me in this. 请帮助我。
I've got the same issue. 我有同样的问题。 It looks like the .LNK extension is deemed unsafe by the Chrome developers so its extension is replaced with .download. Chrome开发人员认为.LNK扩展名似乎不安全,因此其扩展名已替换为.download。
See https://stackoverflow.com/a/34890432/2491027 请参阅https://stackoverflow.com/a/34890432/2491027
Looks to have always been the case as well, from this comment: https://bugs.chromium.org/p/chromium/issues/detail?id=1503#c25 从以下评论看来,情况也一直如此: https : //bugs.chromium.org/p/chromium/issues/detail?id=1503#c25
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.