title: Error message "DevTools failed to load SourceMap: Could not load content for chrome-extension://..."
body: <p>I'm trying to display an image selected from the local machine and I need the location of that image for a JavaScript function. But I'm unable to get the location.</p>
  <p>To get the image location, I tried using <strong>console.log</strong>, but nothing returns.</p>
  <pre><code>console.log(document.getElementById(&quot;uploadPreview&quot;));
  </code></pre>
  <hr />
  <p>Here's the HTML code:</p>
  <pre class="lang-html prettyprint-override"><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
    &lt;title&gt;&lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
    &lt;div align=&quot;center&quot; style=&quot;padding-top: 50px&quot;&gt;
      &lt;img align=&quot;center&quot; id=&quot;uploadPreview&quot; style=&quot;width: 100px; height: 100px;&quot; /&gt;
    &lt;/div&gt;
  
    &lt;div align=&quot;center&quot; style=&quot;padding-left: 30px&quot;&gt;
      &lt;input id=&quot;uploadImage&quot; type=&quot;file&quot; name=&quot;myPhoto&quot; onchange=&quot;PreviewImage();&quot; /&gt;
    &lt;/div&gt;
  
    &lt;script type=&quot;text/javascript&quot;&gt;
      function PreviewImage() {
        var oFReader = new FileReader();
        oFReader.readAsDataURL(document.getElementById(&quot;uploadImage&quot;).files[0]);
  
        oFReader.onload = function (oFREvent) {
          document.getElementById(&quot;uploadPreview&quot;).src = oFREvent.target.result;
          console.log(document.getElementById(&quot;uploadPreview&quot;).src);
  
        };
      }
    &lt;/script&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  <p>Console Output:</p>
  <p><a href="https://i.stack.imgur.com/xCInG.png" rel="noreferrer"><img src="https://i.stack.imgur.com/xCInG.png" alt="Enter image description here" /></a></p>
  <p>Here's the warning:</p>
  <blockquote>
  <p>DevTools failed to load SourceMap: Could not load content for
  chrome-extension://alplpnakfeabeiebipdmaenpmbgknjce/include.preload.js.map:
  HTTP error: status code 404, net::ERR_UNKNOWN_URL_SCHEME</p>
  </blockquote>