This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+1 vote

Hello, I'm wondering the capabilities of Godot to open and saving files from a WebGL export. I'm having trouble opening a FileDialog in the WebGL exports.

My goal is to open a file and continually read and write to it like in under edge and chrome. I am not sure if is using the HTML5 File API, JavaScript, Chrome specific API, or something else.

Godot version 3.3.2
in Engine by (13 points)

1 Answer

+2 votes

Godot does not support the HTML5 FileSystem API (which requires an explicit user permission to be granted), but since 3.4 beta, there is an easy to use download API which can be used to save files to the user's Downloads folder.

In 3.3 and earlier, you need to call JavaScript code to download files from an HTML5 export instead.

by (12,908 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.