nextcloud / nextcloud/android

Auto upload uses mobile data

Open
#11,674 3 comments 2 reactions 0 assignees View on GitHub
bug connectivity feature: auto upload feature: data usage stable-3.24
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. Auto upload is turned on, with "Only upload on unmetered Wi-Fi" ticked.
2. Record a long video.

### Expected behaviour

Video should upload once the phone logs back onto a wifi network. It should NOT use mobile data for the upload.

### Actual behaviour

The video uploads (successfully) once the phone is on a wifi network. Some time later, while not connected to the wifi, the video appears to be re-uploaded over mobile data (I see a large number of PUT requests to /remote.php/dav/uploads/// but I don't appear to see a MOVE at the end of the upload, nor does the Nextcloud activity log show that anything has been uploaded, so presumably the upload does not succeed).

Turning off "background data" for the Nextcloud app in Android's settings appears to have worked around the issue.

### Android version

12

### Device brand and model

Fairphone 4

### Stock or custom OS?

Custom (explain in "additional information")

### Nextcloud android app version

3.24.2

### Nextcloud server version

25.0.3

### Using a reverse proxy?

No

### Android logs

_No response_

### Server error logs

_No response_

### Additional information

Running the stock Android 12, but rooted.

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.