webgui icon indicating copy to clipboard operation
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.

Open zhouhm opened this issue 10 months ago • 3 comments

I checked and couldn't find a solution

zhouhm avatar Apr 06 '24 09:04 zhouhm

readFile() ?.

juancarlospaco avatar Apr 07 '24 13:04 juancarlospaco

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')

Screenshot from 2024-04-08 08-01-11

zhouhm avatar Apr 08 '24 00:04 zhouhm

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

zhouhm avatar Apr 08 '24 00:04 zhouhm