I need to set an image source to a location on the network.
The image is located at machineName\mappedPath\abc.jpg.
It does not load in any browser though all I need it to work in is IE v9 and above. When I inspect the location in the source it is set to
<img src="\\machineName\mappedPath\abc.jpg">
When i right click on the image placeholder in IE and look at the properties I see the address is set to
file://machineName/mappedPath/abc.jpg
Using file explorer with either of those paths opens the image fine.
I've tried adding IP. Can't add a domain name as its not on a domain.
Other paths I've tried setting the source to directly below. I've read a few places that 5 front slashes are required but it hasn't made any difference
<img src="file://\\machineName\mappedPath\abc.jpg">
<img src="file:////\\machineName\mappedPath\abc.jpg">
<img src="file://///\\machineName\mappedPath\abc.jpg">
<img src="file:////machineName/mappedPath/abc.jpg">
<img src="file://///machineName/mappedPath/abc.jpg">
<img src="\\machineName\mappedPath\abc.jpg">
I've also tried enabling file sharing by adding a firewall rule
On a side note, does the path have to be mapped as a network drive or is it sufficient to set it up as a network share?
Not a definitive source but this is pretty common kind of information I've come across https://jonlabelle.com/snippets/view/html/create-html-link-to-unc-path , but for which won't work for me (in IE)