webgui
webgui copied to clipboard
Please tell me how to open a local file, read the file content, and finally display the file content into a text box in a webgui app.
I checked and couldn't find a solution
readFile()
?.
May be app.dialogOpen() I found it at https://github.com/juancarlospaco/ballena-itcher.git. But when I click "Abrir ISO" button, my console raised the following error:
$ ./ballena_itcher
file:////home/zhouhm/ballena-itcher/src/index.html:5:16: CONSOLE JS ERROR TypeError: undefined is not an object (evaluating 'window.external.invoke')
My OS
$ cat /etc/os-release
PRETTY_NAME="Ubuntu 22.04.4 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.4 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy