Skip to content

Fix uploaded text files showing empty editor#28

Merged
shikokuchuo merged 1 commit intomainfrom
file-upload
Mar 5, 2026
Merged

Fix uploaded text files showing empty editor#28
shikokuchuo merged 1 commit intomainfrom
file-upload

Conversation

@shikokuchuo
Copy link
Collaborator

Fixes #27.

When uploading a file via "+New" > "Upload File", all files were routed through createBinaryFile. Text files (.qmd, .md, etc.) uploaded this way had no text content in the Automerge document, so the editor appeared empty when opening them.

We now detect text files by extension and delegate to handleCreateTextFile, which creates a proper text document and navigates to it.

@shikokuchuo shikokuchuo merged commit ffce3a0 into main Mar 5, 2026
4 of 6 checks passed
@shikokuchuo shikokuchuo deleted the file-upload branch March 5, 2026 23:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Hub client: "Upload file" results in empty editor

1 participant