2👍
✅
An <input type="file"/>
will provide the functionality you seek. However the full file path is typically unavailable. Modern browsers replace it with C:\fakepath\<file>
as revealing information on the web, such as directories, about the clients machine is a security problem if the site was infected by XSS (Cross-Site Scripting).
Source:stackexchange.com