path is correct in log but in db it show fakepath code example
Example: js C:\fakepath
// Use
document.getElementById("file-id").files[0].name;
// instead of
document.getElementById('file-id').value
// Use
document.getElementById("file-id").files[0].name;
// instead of
document.getElementById('file-id').value