android icon indicating copy to clipboard operation
android copied to clipboard

Automatic photo upload does not upload all photos taken consecutively

Open tpafe opened this issue 10 months ago • 7 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. Enable automatic photo upload in the Nextcloud Android app.
  2. Open the Android camera app.
  3. Take several photos in a row (for example 4–5 photos) within a short time.
  4. Wait a few minutes for the automatic upload to start.
  5. Check the upload status and the photos folder in Nextcloud.

Expected behaviour

  1. All photos taken should be uploaded automatically to Nextcloud.
  2. If 5 photos are taken, all 5 photos should appear in the Nextcloud photos folder without manual intervention.
  3. The app should not incorrectly detect newly taken photos as already existing files.

Actual behaviour

Not all photos taken are uploaded automatically.

When several photos are taken in a short period of time (for example 4–5 photos), only some of them are uploaded (sometimes 1 or 2), while the rest are skipped.

For the photos that are not uploaded, the app reports that the file already exists on the server and skips the upload. However, this is incorrect: the file does not actually exist in the destination folder in Nextcloud.

The photos that get uploaded or skipped seem to be random. The skipped photos remain on the device and are only uploaded if the upload is triggered manually or after restarting the app.

This looks like a false-positive duplicate detection issue.

Android version

13

Device brand and model

xiaomi mi 11 lite 5g

Stock or custom OS?

Stock

Nextcloud android app version

3.3530

Nextcloud server version

Nextcloud Hub 25 Autumn (32.0.5)

Using a reverse proxy?

No

Android logs

No response

Server error logs


Additional information

Image

tpafe avatar Jan 21 '26 08:01 tpafe

android version 3.35.0

tpafe avatar Jan 21 '26 08:01 tpafe

The problem isn't limited to photos. Auto-upload of files (including photos) frequently fails. Sometimes new files aren't uploaded at all, and sometimes only a portion of them are. This issue has persisted for months, but it has worsened significantly since the update to version 3.35. It's extremely disappointing that such fundamental functions have been completely broken for so long!

contoporte avatar Jan 21 '26 19:01 contoporte

Hi. I have a similar issue using Android 16 (GrapheneOS 2026011301) and Nextcloud for Android 3.35.0. I have taken about 40 images today. All of them were uploaded using Auto Upload. Then there were 10 notifications that there is a conflict uploading images (although all of these images were new and not existing in the folder before). I ignored and deleted these notifications. When I looked into the folder, all of the images were there except one. One was created as a 0 Byte file. As I have configured Nextcloud on Android to move the original file into the app folder, I might have lost this image entirely...

andkopp avatar Jan 22 '26 14:01 andkopp

I also lost 3 pictures (using "deleted" for original photo) which were uploaded as 0 size. After that upload stopped entirely.

slepkaviba avatar Jan 23 '26 20:01 slepkaviba

new 3.35.1 looks like at moment

tpafe avatar Jan 24 '26 09:01 tpafe

So far, the error persists based on the tests performed.

tpafe avatar Jan 24 '26 10:01 tpafe

I can confirm all of this.

CocolinoFan avatar Aug 16 '26 15:08 CocolinoFan