Opening, Saving, Polling Files in WebGL Export

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By dylanthesoldier

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.

:bust_in_silhouette: Reply From: Calinou

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.