javascript code for getting the value of <input type=file> returns only the filename in firefox
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1676070/input-type-file-ie-gives-full-path-ff-gives-only-filename-or-directory-bro">&lt;input type=&#39;file&#39;&gt; IE Gives full path, FF gives only filename (or directory browse)</a><br>
  <a href="http://stackoverflow.com/questions/4851595/how-to-resolve-the-c-fakepath">how to resolve the C:\fakepath?</a>  </p>
</blockquote>



<p>the getImage() function returns the correct full path of the file selected in the  tag in IE .. But it returns only the filename in firefox.. Please do help. I need the full path name in all browsers.. </p>

<pre><code>getImage()  {
    var location=document.getElementbyId("photo").value;
}

&lt;body&gt;
    &lt;input type=file; id=photo;&gt;
&lt;/body&gt;
</code></pre>
