title: html Image source from UNC path
body: <p>I need to set an image source to a location on the network. </p>
  
  <p>The image is located at machineName\mappedPath\abc.jpg.</p>
  
  <p>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 </p>
  
  <pre><code>&lt;img src="\\machineName\mappedPath\abc.jpg"&gt;
  </code></pre>
  
  <p>When i right click on the image placeholder in IE and look at the properties I see the address is set to </p>
  
  <pre><code>file://machineName/mappedPath/abc.jpg
  </code></pre>
  
  <p>Using file explorer with either of those paths opens the image fine. </p>
  
  <p>I've tried adding IP. Can't add a domain name as its not on a domain.</p>
  
  <p>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</p>
  
  <pre><code>&lt;img src="file://\\machineName\mappedPath\abc.jpg"&gt;
  &lt;img src="file:////\\machineName\mappedPath\abc.jpg"&gt;
  &lt;img src="file://///\\machineName\mappedPath\abc.jpg"&gt;
  &lt;img src="file:////machineName/mappedPath/abc.jpg"&gt;
  &lt;img src="file://///machineName/mappedPath/abc.jpg"&gt;
  &lt;img src="\\machineName\mappedPath\abc.jpg"&gt;
  </code></pre>
  
  <p>I've also tried enabling file sharing by adding a firewall rule</p>
  
  <p><a href="https://blogs.msdn.microsoft.com/windows_azure_connect_team_blog/2011/01/20/windows-azure-connect-use-case-enable-file-sharing-on-windows-azure-vm/" rel="noreferrer">https://blogs.msdn.microsoft.com/windows_azure_connect_team_blog/2011/01/20/windows-azure-connect-use-case-enable-file-sharing-on-windows-azure-vm/</a></p>
  
  <p>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?</p>
  
  <p>Not a definitive source but this is pretty common kind of information I've come across <a href="https://jonlabelle.com/snippets/view/html/create-html-link-to-unc-path" rel="noreferrer">https://jonlabelle.com/snippets/view/html/create-html-link-to-unc-path</a> , but for which won't work for me (in IE)</p>