I have a Windows application based on Qt WebEngineView (in QML). There are web pages in my app. Some web page need user to select files using:
<input type="file" />
I want to know, is it possible for my app to remember the last directory user selected a file?
I have tried:
- Set value property to
<input>
in my web page, but it is not allowed by browser to set it programmatically, see Set default value for a input file form. - Open my web pages in Chrome, Chrome can remember last directory. But in my app, every time it opens the directory where the app is installed.
- In native Open File Dialog, I can set an initial directory, but can I do the same for Open File Dialog in web pages?
I know this may be impossible. Any suggestions and workarounds are appreciated.