Resolve a name conflict during restore

Resolve file restore name-conflict refusals, understand automatic folder-root numbering, and verify the destination without overwriting another record.

Last reviewed

Restore behavior differs by item type. A file restore refuses a live same-named file in its destination with 409 name_conflict; it does not silently replace or rename either file. A folder root receives an available name such as Photos (2), but a conflicting file inside its restored subtree can still refuse the whole restore.

Theme-aware four-step map for identifying a deleted file or folder, checking its destination, restoring it, and reading the resulting name.
The map distinguishes automatic folder renaming from the file restore path. Open full-size screenshot.

Steps

  1. In Deleted, determine whether the target is a file or a folder. Compare timestamps and details before acting on a repeated name.
  2. Check the original destination when you know it. If a folder with the desired name already exists there, expect the restored folder to receive the next available numbered name.
  3. Choose Restore on the single row. You need the applicable delete-own or delete-any permission because the restore endpoint reuses those role gates.
  4. For a folder, read the toast’s returned name. Dosya uses that server-selected final name instead of the stale trash-row name.
  5. If a file restore reports that the name already exists, leave the deleted file in trash and inspect the live destination record. Rename or move the conflicting live file only after verifying its identity, then retry Restore. A folder restore can likewise report a file-name conflict inside its subtree; that failed restore leaves the subtree in trash.
  6. Rename or relocate one restored item only after confirming which record is which. File names allow up to 255 characters; folder names allow up to 100 and must remain one path segment.

Related restore blockers. A file whose containing folder is still trashed fails with This file's folder is in the trash - restore the folder first. A folder deleted as part of another folder must be restored through that parent trash root.

Expected result

A folder root can return under an available name such as Name (2). A live same-name file conflict is reported instead of creating duplicate names or overwriting bytes; resolve the correct live record before retrying, and verify the final restored destination.

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.