-
Hello, I now face a potentially classic web-app issue: my goal with the file input is only to select a file to get the local file path, not to upload anything to the server side. I saw that it seems to be possible for pywebview to get access to the local file system, it seems like the same is also possible using Tauri, but I have no idea whether such possibilities are exposed in trame, or if they could achieved. (electron apps also allow local file system access to my knowledge, but I never did anything with electron, so i essentially repeating what I read online here) A hint would be appreciated To recall my goal: build a simple desktop app in which I can input local file path for later processing on the python side: the app does not need to process the content of file (it will utimately copy it else where, but that's another problem). Thanks in advance. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
The better path to deal with file dialog and get the path, is with Tauri. You can find this example that showcases the file dialog and more. |
Beta Was this translation helpful? Give feedback.
-
Thanks for pointing in this direction. |
Beta Was this translation helpful? Give feedback.
-
You may have to do |
Beta Was this translation helpful? Give feedback.
You may have to do
utils.tauri.dialog.open().then((v) => {file_to_open = v;}))
.await
may not be allowed in inlined function within a template.