简体   繁体   English

.lnk文件在Chrome中以.download的形式下载,但在Mozilla的第一次尝试中无法下载

[英].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.

相关问题 使用 Puppeteer 下载文件时 Chrome 下载错误 - Chrome download error when downloading file with Puppeteer 如何在 html 中下载.lnk 文件 - How to download .lnk file in html 创建多行文件并使用Chrome.downloads.download下载 - Creating a multi-line file and downloading with Chrome.downloads.download Mozilla Firefox下载选项 - Mozilla Firefox download option Javascript / Node JS,下载文件时如何检查文件大小并下载文件的第一个千字节 - Javascript/Node JS , when downloading a file how to check file size and download the first kilobyte of a file 为什么当我在启用“下载前询问每个文件的保存位置”选项的情况下调用 chrome.downloads.download 方法时下载会中断 - Why is the download interrupted when i call chrome.downloads.download method with enabled "Ask where to save each file before downloading" option 从下载 url 下载 Firestorage 不会下载我的文件 - Firestorage downloading from download url doesn't download my file 使Chrome扩展程序下载文件 - Making a Chrome Extension download a file 在Chrome中下载带有日语符号的文件 - Download file with japanese symbols in Chrome javascript中的下载文件在Chrome中不起作用 - Download file in javascript is not working in Chrome
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM