title: How to get the image/file path for field type="file" using javascript
body: <p>I have an html upload/browsing field as below</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;script&gt;
                function get_image_or_files_path()
                {  
                   var files = document.getElementById("selectedFile").files;
                   for (var i = 0; i &lt; files.length; i++)
                      console.log(files[i].name+'&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;&gt;');
                }       
      &lt;/script&gt;
    &lt;/head&gt;
    &lt;body&gt;
       &lt;input type="file" id="selectedFile" name="get_image_path" onfocusout="get_image_or_files_path()"/&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>So by the above javascript, i can able to get the <code>file/image</code> name, but how to get the <code>url/path</code> of the <code>file/image</code></p>