Possible to import file to / export file from inside HTML5 game?
Cocos
SEPTEMBER 7, 2024
On the web, you cannot really read files from the player’s computer. The browser is a self-contained sandbox, it does not have the system context, only the browser context. While Cocos does not provide a file system for such cases, if you are working with only a web platform in mind, you can try to use Web APIs to access the browser file system → De File System Access API: vereenvoudigt de toegang tot lokale bestanden | Capabilities | Chrome for Developers.
Let's personalize your content