-1

Possible Duplicate:
<input type='file'> IE Gives full path, FF gives only filename (or directory browse)
how to resolve the C:\fakepath?

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..

getImage()  {
    var location=document.getElementbyId("photo").value;
}

<body>
    <input type=file; id=photo;>
</body>
Community
  • 1
  • 1
Sighil
  • 3,416
  • 2
  • 18
  • 35

1 Answers1

0

Newer implementations of browsers don't give you access to the full filenames. You'll just have to deal with it...

Juan Mendes
  • 80,964
  • 26
  • 138
  • 189