Skip to content

File incompatibility with excalidraw.com #938

@DarkWiiPlayer

Description

@DarkWiiPlayer

Steps to reproduce

  • Create a new drawing on excalidraw.com (or another excalidraw-based application)
  • Upload the .excalidraw file to nextcloud
  • Open the file and save it
  • Download the changed file
  • Attempt to open the file via excalidraw.com
Error: invalid file

Why is this a problem

It sometimes makes sense to use Nextcloud to save excalidraw files wile editing them elsewhere (example obsidian, excalidraw.com, etc.)

Opening these files on the nextcloud web-ui, whether to edit them or by mistake, "corrupts" the file so it can no longer be opened elsewhere. This makes it impossible to use both to edit files depending on the situation, and makes it easy for users to break their drawings in a way that requires tinkering to fix.

Workaround and possible fix

A downloaded .excalidraw file can easily be fixed by prepending the following JSON values:

{
  "type": "excalidraw",
  "version": 2,
  "source": "https://<my-nextcloud-domain>",
}

Afterwards, both whiteboard and other tools can open the file again, unless it is saved by whiteboard and broken again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions