Skip to content

Conversation

@alperozturk96
Copy link
Collaborator

@alperozturk96 alperozturk96 commented Jan 12, 2026

  • Tests written, or not not needed

Issue

lastScanTimestampMs != -1L && lastModified < lastScanTimestampMs

This skip logic must be applied for only fileSentForUpload is true, otherwise it will skip newly added files as well.

How to test?

  1. Create a folder that has images from local file manager
  2. Configure that folder for auto-upload
  3. Auto upload will upload all images in it
  4. Add new images from local file manager
  5. Wait for next auto-upload attempt

Result

Screenshot 2026-01-12 at 12 27 33 Screenshot 2026-01-12 at 12 26 57

@alperozturk96
Copy link
Collaborator Author

/backport to stable-3.35

Signed-off-by: alperozturk <[email protected]>
return
}

val entity = dao.getFileByPathAndFolder(localPath, syncedFolder.id.toString())
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getAutoUploadFilesEntities already returns file needs to be uploaded and if we skip when fileSentForUpload is true, changed files will not be uploaded.

@github-actions
Copy link

APK file: https://www.kaminsky.me/nc-dev/android-artifacts/16276.apk

qrcode

To test this change/fix you can simply download above APK file and install and test it in parallel to your existing Nextcloud app.

@github-actions
Copy link

Codacy

SpotBugs

CategoryBaseNew
Bad practice4343
Correctness7474
Dodgy code257257
Experimental11
Internationalization77
Malicious code vulnerability33
Multithreaded correctness3434
Performance4444
Security1818
Total481481

@github-actions
Copy link

blue-Light-Screenshot test failed, but no output was generated. Maybe a preliminary stage failed.

@alperozturk96 alperozturk96 changed the title fix: auto upload file skip check fix(auto upload): file skip check Jan 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants