Skip to content Skip to sidebar Skip to footer

Access To Files On A Windows Shared Folder Over Network

i'm trying to access to a file (ex: pdf file) on a shared windows folder. (using the FILE protocol) file://myShareServer/path/to/myFile.pdf jquery ajax returns : XMLHttpRequest

Solution 1:

You can treat it like any other file on your computer and make it a link as links don't have a cross origin policy like XMLHttpRequests.

<a href="file://myShareServer/path/to/myFile.pdf">Download the file</a>

Post a Comment for "Access To Files On A Windows Shared Folder Over Network"