nextcloud / nextcloud/android

Cannot change auto upload destination while auto upload is disabled

Open
#14,965 5 comments 6 reactions 0 assignees View on GitHub
0. Needs triage bug
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### ⚠️ Before posting ⚠️

- [x] This is a **bug**, not a question or an enhancement.
- [x] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [x] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [x] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).

### Steps to reproduce

1. Attempt to change the auto upload destination directory for any folder while the auto upload for that folder is disabled.

### Expected behaviour

1. You should be able to change the destination directory.

### Actual behaviour

1. You cannot change the destination directory.

### Android version

15

### Device brand and model

Samsung Galaxy S24 Ultra

### Stock or custom OS?

Stock

### Nextcloud android app version

3.31.4

### Nextcloud server version

31.0.5

### Using a reverse proxy?

Yes

### Android logs

Not relevant.

### Server error logs

```bash
Not relevant.
```

### Additional information

I use a self-hosted Nextcloud instance primarily to automatically back up photos/videos from my phone. I have a large number of folders set up in the Auto Upload, none of which use the default _InstantUpload_ directory on the server. The feature generally works very well, HOWEVER, if configuring Auto Upload from fresh (e.g. new app install, new phone, or the app has just lost the Auto Upload settings for whatever reason like has recently happened) there is an issue:

The default destination directory for folders in Auto Upload is a subdirectory under the _InstantUpload_ directory on the server. I do not use this. In order to change the destination directory, Auto Upload must be enabled for that folder, but herein lies the issue: as soon as you enable Auto Upload for that folder, it will immediately begin queuing files for upload to the currently configured destination directory, which in my case is incorrect. Once this upload starts, it cannot be easily cancelled.

The result of this is that I now have approximately 13,000 files trying to upload to the wrong place. Even if I change the destination directory during this process, it is not honoured until the current queue finishes. The issue is that the destination directory cannot be changed without enabling Auto Upload, but enabling Auto Upload will immediately begin uploading files to the wrong directory.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.