This is my upload button.
Use
document.getElementById("file-id").files[0].name;
instead of
document.getElementById('file-id').value