Edit a text file in the browser

Edit supported text files up to 2 MiB in the Dosya browser, save the full content as a new version, and recover from save failures safely online.

Last reviewed

The browser viewer can edit recognized text files no larger than 2 MiB. Saving uploads the complete editor contents as a new version of the same Dosya file; it does not autosave individual keystrokes.

Browser text-editing workflow from opening a supported file through saving and checking its new version.
Make a controlled change in the full-screen editor, save the whole document, and confirm the resulting version before closing your task. Open full-size screenshot.

Supported files and permissions

Recognition includes common plain text, source code, configuration, markup, data, subtitle, shell, and diff extensions. Extensionless names such as README, LICENSE, Dockerfile, Makefile, and familiar dotfiles are also eligible; recognized text MIME types provide another path. The editor supplies syntax modes for TypeScript and JavaScript, Python, JSON, Markdown, CSS, HTML, SQL, YAML, Rust, and Go, with plain text as the fallback.

The Edit control is offered when text detection succeeds, the stored size is 2 MiB or less, and the file is not fully locked. Saving must still pass the upload gates: workspace membership, upload files permission, folder confinement, active destination, lock policy, file-size and extension policy, storage quota, and transfer concurrency. A view-only or otherwise restricted file can therefore reach the editor but fail when saving.

Steps

  1. Open the file from Files in a web browser. Confirm the header name before choosing Edit.
  2. For .txt, .md, and .markdown, Files opens a full-page CodeMirror editor with current file content, even if an older version was previewed. Other recognized readable text opens the viewer overlay using the selected preview version. Both wrap long lines; the full-page editor follows the app theme, while the overlay uses a dark code theme.
  3. Make the required change. Use the editor’s normal undo command if you need to reverse an unsaved keystroke.
  4. Select Save in the full-page editor or Save version in the overlay. The button changes to Saving… while Dosya sends the complete text. Full-page Ctrl+S or Command+S also saves. If its pre-save check reports another version, review the conflict before proceeding.
  5. Full-page success reports Saved as a new version, updates saved status, and keeps the editor open. Overlay success reports Saved — File saved as new version., closes the overlay, and refreshes the viewer.
  6. Reopen the file, verify the edited passage, then use Versions if you must compare the prior content.
File viewer reference showing where the header Edit control and inspector version check belong in the browser workflow.
This reference shows the viewer-overlay path. Plain text and Markdown now open a separate full-page editor; use its Version history control or return to Files to verify the saved version. Open full-size screenshot.

Save behavior and recovery

Closing does not upload the current buffer. The full-page editor offers Keep editing or Discard changes when navigating away with unsaved changes and requests the browser’s own prompt on tab reload or close. When browser storage is available, it saves local drafts and can offer Restore or Discard on a later compatible opening; this is not cloud autosave or guaranteed recovery. The overlay has no dedicated unsaved-changes confirmation or local draft recovery, so copy important unsaved text elsewhere before closing it.

The full-page editor checks for another saved version before uploading and can offer Cancel, Overwrite, or Save as copy. Overwrite appends your draft as a new current version; Save as copy creates a separate file in the same folder and opens it. The overlay has no such conflict check. Neither save request includes an atomic expected-version guard, so coordinate concurrent edits even when no warning appears.

A full-page loading error stays on screen with Try again; an overlay loading error closes it and reports Editor unavailable — Could not open the text editor. Check access and connectivity before reopening. Save failures appear as Could not save this file in the full-page editor or Save failed in the overlay, with details such as Could not start upload or Failed to save. Preserve the buffer and resolve the permission, policy, quota, lock, or network cause. After an uncertain response, inspect current content before assuming no save occurred. Abandoned upload sessions are reclaimed by stale-session cleanup; the save UI does not guarantee an immediate release of their held transfer slots.

The save is not in place at the storage-object level: it registers a new version of the same file. Previous versions remain according to workspace retention and version limits and may be restored while available. Restoring later is a separate mutation; closing without saving creates no version.

Expected result

The edited content reopens under the same file identity, and version history shows a newly saved version. If saving was refused before any write, the prior stored version remains current. Preserve the draft independently, and verify current content if the response was uncertain.

Was this helpful?

Loading helpfulness results…

Voting saves a necessary ballot cookie for up to 180 days so you can change your answer.

Questions and replies

Ask about the steps in this guide. Questions are reviewed before publication.

Keep account details, credentials and private files out of public questions. Use private support for those.

Loading questions…

    Sign in to your Dosya account to ask a question.

    Check the outcome before you retry

    Use these shared checks when a task needs a second look.