Skip to content

Add support for saving to a local file from the web-app (or even import an existing local project) ("File System Access API") #5060

Open
@tomayac

Description

@tomayac

Description

Rather than downloading, allow for true saving of games. See the Trello request.

Solution suggested

Describe the solution

Replace calls to openBlobDownloadUrl() with a fileSave() call from the browser-fs-access library. (Full disclosure: I'm its author.) This would use the same <a download> fallback on non-supporting browsers, but properly use the File System Access API on supporting browsers. The advantage is that saves will not be downloads (so users don't end up with chains of gdevelop game.zip, gdevelop game (1).zip, gdevelop game (2).zip), but one

Add any other context or screenshots about the feature request here.

Construct 3 uses this API successfully.

Explain if you can help to implement the solution.

Happy to make changes to browser-fs-access should you require them.

Alternatives considered

  • You could leave things as is.
  • You could also implement the File System Access API calls and the fallback solution yourself if you decide against browser-fs-access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions