Skip to content

Content lost after file renaming from .md to .txt #5736

Closed
@cybermyber

Description

Describe the bug
If you rename an .md file to a .txt file, the content will be lost after opening it in the built-in text editor.
If you download the renamed file before opening it in the built-in text editor, the content is retained.

To Reproduce
Steps to reproduce the behavior:

  1. Create or upload a new .md-File with some content
  2. Open the file with the text editor and check the content
  3. Close the file and rename it to example_filename.txt
  4. Open the example_filename.txt-File with the text editor

Expected behavior
After renaming from .md to .txt, the former content should be retained after opening with the text editor.

Screenshots
Screenshot from 2024-04-30 13-40-26
Screenshot from 2024-04-30 13-40-50

Server details:

  • Nextcloud version: 28.0.2
  • PHP Version: 8.1
  • Database: MariaDB 10.5.23

Client details:

  • OS: Fedora 39
  • Browser: Chrome
  • Browser version: 123.0.6312.122
  • Device: Desktop

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Labels

Type

No type

Projects

  • Status

    ☑️ Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions