What should i do here to get the path const [file, setFile] = useState("");
function handleUpload(e) {
setFile(e.target.files[0]);
//what should i do here to get the path
}
<Button variant="contained" component="label" >Upload File <input type="file" hidden webkitdirectory onChange={(e)=>handleUpload(e)}/></Button>