android icon indicating copy to clipboard operation
android copied to clipboard

Automatic retry of camera uploads after failing

Open rewolff opened this issue 1 month ago • 3 comments

Steps to reproduce

  1. In the app, configure auto-upload.
  2. Configure the server to be on a local network reachable from a specific WIFI ap.
  3. take a picture with the phone, while not no that WIFI network that can reach the server.
  4. Wait for it to be attempted to upload which fails, and the picture shows in the uploads list under failed with a retry button.
  5. (hit retry while on the correct WIFI and the upload works).

Expected behaviour

ENHANCEMENT: I would like to configure a "when you see the phone connected to this wifi SSID, please retry automatically". This would cause my uploads to happen automatically (albeit not always within 15 minutes). Now I almost always have to use the "retry" button to upload my pictures.

Actual behaviour

The pictures I take always end up in the "uploads that failed" list.

Server configuration

n.a.

Web server: n.a.

Database: n.a.

PHP version: n.a. ownCloud version: (see ownCloud admin page) I'm assuming you mean app version. Most apps have help->about. This app has help redirect to a webpage. and no about button showing the version.

Updated from an older ownCloud or fresh install: n.a.

Where did you install ownCloud from: I don't remember.

Signing status (ownCloud 9.0 and above): ???

The content of config/config.php: n.a.

List of activated apps: n.a.

Are you using external storage, if yes which one: local/smb/sftp/... Local disk.

Are you using encryption: yes/no no.

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... no?

Client configuration

app. Android.

rewolff avatar Nov 20 '25 10:11 rewolff

hi @rewolff!! , first of all, thanks for opening a new issue.

Some context:

if an automatic upload fails because a lack of connectivity, the status is Enqueued. Uploads will remain in such status till the connectivity is back, then, they will move on. You mentioned the Failed status because server is unreachable in the network your device connected to, even though the device has connectivity.

Your suggestions:

  • Filter by SSID: it seems to be very tailored. To be honest, i would not take that path.
  • Automatic retries: that already works for the case no connectivity → connectivity .

If an upload is failed (that means, the problem was not the device connectivity), assuming retries is risky because there are a bunch of causes that made the upload to fail, leading retries to keep failing in some cases. Could it be prevented? maybe, it could need to give it some thought.

jesmrec avatar Nov 21 '25 12:11 jesmrec

You have a point.

How about a more configurable "when to retry"? With the defaults set to what it is now (because you think those are reasonable for the majority of the users). Then for state "enqued" retry happens / defaults to "when connectivity is restored", and for state "failed" retry happens: defaults to "never". But both should also have the options "when connected to WIFI", "when connected to specific WIFI", "when network changes" and maybe a few others...
(since hitting enter: "every xxx time" is another. Another option: Retry XX times. )

rewolff avatar Nov 21 '25 12:11 rewolff

Well, that sounds very flexible. But, you have to mind we also have some restrictions from the OS. Uploads are performed by workers that are directly handled by Android and not every condition is supported to detect events that could trigger retries. We will check it.

jesmrec avatar Nov 24 '25 08:11 jesmrec