android icon indicating copy to clipboard operation
android copied to clipboard

Cannot change auto upload destination while auto upload is disabled

Open janipewter opened this issue 6 months ago • 4 comments

⚠️ Before posting ⚠️

  • [x] This is a bug, not a question or an enhancement.
  • [x] I've searched for similar 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.

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

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.

janipewter avatar Jun 07 '25 17:06 janipewter

I have the same issue since the last upate. My upload configuration was deleted, I activated the folders again, tried to reconfigure it, but the uploading was already in process. Even if I deactivate the folder now again, it still tries to upload over 4k files. Tried to reboot my phone, but the upload continues (and fails as I deactived it or set up a different folder).

cathodoluminescence avatar Jun 09 '25 12:06 cathodoluminescence

I have the same issue.

Due to this awful bug all my auto upload settings got deleted. When I noticed this today, I activated the auto uploads again and immediately changed the remote folders from SofortUpload to AutoUpload (as I had configured it previously). But it still uploads to SofortUploads and when I go to the upload menu in the app (and it doesn't hang or crash) it shows uploads to both folders in the queue.

kleinph avatar Jun 11 '25 20:06 kleinph

A rather inconvenient workaround, which didn’t work perfectly for me at first, but eventually did (app few times lost this folder config), was to first turn on flight mode and disable Wi-Fi, then enable and configure auto-upload, and finally restore network connectivity.

pfrejowski avatar Jun 12 '25 06:06 pfrejowski

I've also had this issue. What I found worked:

  1. Select auto upload settings hamburger menu (individual auto upload folders). Do not click the cloud icon that enables the auto upload for that folder.
  2. Enable the auto upload feature for the folder and wait for the settings to load (it usually hangs for a few seconds).
  3. Configure your auto upload settings
  4. Do not select save until everything is correct!

Once I have everything configured as I want it, then I select save and the auto upload starts. If you mess something up here and the auto upload has started, I've found the only fix is uninstalling/reinstalling the Nextcloud app. Disabling/resetting the auto upload settings does not seem to change anything, especially where the pictures are stored.

I would like to add to this feature request, that no auto uploads start until a user has been able to configure the auto upload settings and selected a desired auto upload folder, since the app does not seem to respect any changes for old media.

Image

meaglerick avatar Jun 15 '25 19:06 meaglerick

Hi, I think this issue is related to https://github.com/nextcloud/android/issues/14945 . I got the same thing since 7 june, no more auto upload. The only thing that solve my problem was to remove the nextcloud app and correctly reconfigure the autouploads as said by @meaglerick

SpaceCyclist avatar Jun 20 '25 11:06 SpaceCyclist