download a file

0

Greetings I have 3 computers with different operating systems one MAC, Linux and Windows and one NAS all of these are within the same network inside my NAS I have a shared folder called "master_index" and there in an XLS called "FOR-ASC" -SGC-MASTER INDEX.xls ". I intend for the user to download the file through the browser.

<html>
<head>
    <title>Hola mundo</title>
</head>
<body>
    <a href="file://192.168.1.31/master_index/FOR-ASC-SGC-004%20%20MASTER%20INDEX.xls">FOR-ASC-SGC-MASTER INDEX.xls</a>
</body>

I run it on Windows with IE and Chrome and it downloads without problem but when I run on Linux with FireFox and Chromium I can not download it.

You can support me with this problem.

Thanks

    
asked by Carlos 20.02.2018 в 18:02
source

1 answer

0

Why do not you use javascript and try to call it in an on-click event the tag on the "a" tag or on a button

<script type="text/javascript">  
function startDownload()  
{  
     var url='http://server/folder/file.ext';    
     window.open(url, 'Download');  
}  
</script>
    
answered by 20.02.2018 в 18:17