I am using eel library to create GUI. I can't get the path using <input type="file"> tag because of security reasons. So please tell me a way to get the image and display it in eel interface. I show several questions related to this but I didn't find any full answer.
<body>
<button type="button" onclick="getPathToFile()">Select File</button>
<img id="myImg" src="" width="107" height="98">
</body>
solution:
You have to use tkinter's file dialog to get files
Explanation:
Browsers include a lot of security measures to protect user's data. Since you are on a local server (eel) there are some things you may have to do with python like getting files on the system.
example:
to call it:
Go further: