I have the following code:
<button onclick="javascript:descargarZip(this.value)" value="<%=sArchivoZip%>"><img src="./IMG/icons/mail-arrow-down-icon.png" /></button>
which calls a download function in js:
function descargarZip(val)
{
var url='file://G://Pibexpress//logipc//'+ val;
// location.href= url;
window.open(url, 'Download');
}
* The problem is that the file is NOT inside the IIS (C: //inetpub//Wwwroot/pagina/pagina.asp) where the asp is located; but it is in another unit as an example: G: //folder/archives/archive.zip.
The browser tells me this.
FIREFOX Error: Access to 'file: /// G: //folder//archives//archive.zip' from script denied
CHROME Not allowed to load local resource: file: /// G: //folder//archives//archive.zip '.
And therefore I can not download the file, if anyone knows the solution I would appreciate it very much.
THANK YOU FOR YOUR SUPPORT =)