This is my upload button.
Complementing Sardesh Sharma's answer use:
document.getElementById("file-id").files[0].path
For full path.