lundi 31 juillet 2017

How to make correctly downloading in browser from local network?

I want to make a link, that will download file from my local network. But when i press, i get a message: Not allowed to load local resource

<a href="file://192.168.30.51/MyProgram.exe" target="_blank" class="k-button">My app</a>

and

function downloadOfflineInstallerFromLocal() {
         window.open("file://192.168.30.51/MyProgram.exe",'_blank');
}

doesn't work.

How to fix it, not using --allow-file-access-from-files flag?




Aucun commentaire:

Enregistrer un commentaire