Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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. #22

Open
zhouhm opened this issue Apr 6, 2024 · 3 comments

Comments

@zhouhm
Copy link

zhouhm commented Apr 6, 2024

I checked and couldn't find a solution

@juancarlospaco
Copy link
Owner

readFile() ?.

@zhouhm
Copy link
Author

zhouhm commented Apr 8, 2024

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
Copy link
Author

zhouhm commented Apr 8, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants