nextcloud / nextcloud/android

Skip error about non-existing file if deleted before automatic upload

Open
#7,810 2 comments 1 reaction 0 assignees View on GitHub
approved enhancement feature: auto upload hotspot: device storage
Dominant language
Kotlin
Stars
5.6k
Forks
2k
Avg merge
2d 18h
Merged PRs (30d)
92

Description

### Steps to reproduce
1. Setup automatic upload
2. Go offline (or off wifi if you set it up for "sync only on wifi")
3. Take a shitty picture
4. Wait for NC app to detect it and skip it
5. Using file manager, go and delete that picture, because it wasn't that good anyway
6. Go back online by enabling wifi
7. Wait for sync
8. Check the "Uploads" section

### Expected behaviour
No errors in uploads section.

### Actual behaviour
An error appears that the deleted file cannot be found.

### Version
Nextcloud app 3.14.1
Android 10
Nokia 6.1

### Notes

I'm guessing that the app is keeping track of pending files to upload after a picture has been taken, and then goes through that list when going back online. That code would need to be adjusted to not trigger/display an error in the log for files that got deleted (but only do that for the instant upload workflow, not for the regular syncing logic)

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.