Skip to content

No overwrite prompt appears when saving a file (using Document Provider integration). #689

Backlog

Description

@krwow

Please agree to the following

Summary

The new file should overwrite the existing one with the same name, but instead, a copy with a different name is added to the vault.

System Setup

- Android: 17
- Cryptomator: 3.0.0

Cloud Type

Local storage

Steps to Reproduce

  1. Export some file from some app to a local phone storage (it may require choosing built-in system "Files" app when sharing menu opens).
  2. Select Cryptomator vault from the available options in the hamburger menu on the left side.
  3. Log into vault.
  4. Select folder, where there has already been file with such filename.
  5. Tap "Save" to save file in vault.

Expected Behavior

A pop-up asking whether to overwrite the existing file with the same name should appear.

Actual Behavior

If there’s already a file with the same name in the vault, "(1)" is added to the end of the new file’s name instead of overwriting the existing file, so I now have two files.

Reproducibility

Always

Relevant Log Output

Anything else?

I can also export a file to a folder in the phone’s local storage and then place it in the vault from the Cryptomator app (I can tap the "Plus" button while inside the vault, select "Upload files," and then select this file). In this case, after selecting the file and the location where I want to place it, I get an additional window asking whether I’d like to overwrite the existing file with the same name.

I believe the same should happen when using the Document Provider integration. If that’s not the case, please add a toggle in the settings to make it work that way. Right now, there’s no easy way to overwrite existing files using the Document Provider integration.

Activity

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

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