Failed auto-uploads are not retried
- 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. Take photos with a poor internet connection (eg in a remote area)
2. Auto-uploads attempts to upload them
3. Internet momentarily drops out
4. Upload fails
### Expected behaviour
The upload should automatically retry once better internet is available.
### Actual behaviour
The image is never uploaded. Later images continue to upload normally, but I have about 50 images which haven't been uploaded despite being in a directory set to auto-upload. I have no option to retry these failed uploads, with the upload history only listing the successful uploads.
### Android version
Android 15
### Device brand and model
Google Pixel 6 Pro
### Stock or custom OS?
Stock
### Nextcloud android app version
3.30.6 (Google Play)
### Nextcloud server version
30.0.4 (Nextcloud AIO)
### Using a reverse proxy?
Yes
### Android logs
Using stable version.
### Server error logs
```bash
[no app in context] Error: Expected filesize of 3918322 bytes but read (from Nextcloud client) and wrote (to Nextcloud storage) 1417216 bytes. Could either be a network problem on the sending side or a problem writing to the storage on the server side.
PUT /remote.php/dav/files/maddy/Photos/Pixel%20Camera/2024/12/PXL_20241223_055428056.MP.jpg
from [redacted IP] by maddy at 23 Dec 2024, 5:13:27 pm
```
### Additional information
I love Nextcloud, but the auto-upload feature feels incredibly unreliable, and I am petrified that I will inadvertently lose data due to failed uploads. Some time needs to be spent hardening this feature to make it far more resilient to errors such as network failures.
Contributor guide
Assessment
This issue has not been assessed yet.