Replies: 2 comments 3 replies
-
No. That's a browser/Webview API limitation. |
Beta Was this translation helpful? Give feedback.
0 replies
-
I solved it by using Dialog and calling it in frontend main.go func (a *App) GameExePath() string {
selection, err := runtime.OpenFileDialog(a.ctx, runtime.OpenDialogOptions{
Title: "It's your turn!",
})
if err != nil {
fmt.Println(err)
}
return selection
} Frontend import { GameExePath } from "../../wailsjs/go/main/App";
const handleFindFile = async () => {
await GameExePath().then((result) => {
console.log(result)
});
} Output C:/games/monster hunter/mh.exe |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
Is there a way to get full path when a file is selected via input, or is there a way to disable path security.
when selecting a file it says C:/fakepath/filename
Beta Was this translation helpful? Give feedback.
All reactions