Access file system...?
-
Hi, before all, I check out all the topics trying to find a solution to my problem, but the only that help me a little was this comment from @lorn-potter:
There is a way to 'persist' files, but you need to sync them from the local system into the sandbox.
https://emscripten.org/docs/api_reference/Filesystem-API.htmlUsing the IDBFS you can copy files to a mounted IndexDB filesystem.
In fact, QSettings on wasm uses this to attempt to persist QSettings.But, I keep stuck in the same problem. I try to use a FileDialog (QML) but the app in the Navigator freeze completely, and shows this error:
"Numeric mode unsupported in the posix collation implementation" in qtloader.js:382.Thank you in advance...
-
Ok, I found the solution. Thanks to:
https://stackoverflow.com/questions/56886410/access-local-user-file-on-qt-for-web-assemblySo, with the help of: