Используйте
document.getElementById("file-id").files[0].name;
вместо
document.getElementById('file-id').value