get selected file path from JavaScript. Hi! I want to get selected file path from JavaScript
<input type="file" class="input-file" id="inputfile" onchange="ReadFile()">
here I want to assign file path to model.
function GetFileProerties() {
    var fileproperties = {
        "FileName": upload.files[0].name,
        "FilePath": ** here i want to assign selected file path ** ,
        "FileType": upload.files[0].name.substr((upload.files[0].name.lastIndexOf('.') + 1)),
        "FileSize": upload.files[0].size,
        "Modified Date": upload.files[0].lastModifiedDate
    }
    return JSON.stringify(fileproperties);
}
 
     
    