1👍
✅
Most modern browsers don’t give access to filesystem. And when you choose to upload a file, it replace the real path.
Try:
<input type="file" onchange="alert(this.value)"/>
Will give you C:\fakepath\Myfile.txt
Source:stackexchange.com