Android version: 3.5.0 RC2
Device model: Xiaomi Mi Mix 2
Stock or customized system: Stock
Nextcloud server version: 15.0.2
This bug does not happend in previous version < 3.5.0. On previous version, the app successfully upload the new version of the file.
@tobiasKaminsky could we maybe run into issues due to the dynamic chunking? Else I can't recall any changes to auto upload within the 3.5.0 release.
GitMate.io thinks possibly related issues are https://github.com/nextcloud/android/issues/2295 (0), https://github.com/nextcloud/android/issues/3551 ([3.5.0 RC1 and RC2] Cannot upload bigger files any more), https://github.com/nextcloud/android/pull/3549 (Bump to 3.5.0 RC2), https://github.com/nextcloud/android/pull/3509 (3.5.0 RC1), and https://github.com/nextcloud/android/issues/3015 ([3.3.0 RC2] missing avatar fetching).
I have this issue also with a file which is created by a banking app. After the file changes, it should be autouploaded again just as a backup.
The first reason seems to be that the upload is started when the file is still being written to. Maybe there is a way to check if this file is still "open" by another app.
The second issue seems to me unrelated, as I understand that backup.zip is uploaded on day 1 via AutoUpload, changed the next day, and should be uploaded & overwritten via AutoUpload.
The first reason seems to be that the upload is started when the file is still being written to. Maybe there is a way to check if this file is still "open" by another app.
There is no reliable way of doing that. But you can monitor mtime and size and start uploading only after period if inactivity. Not perfect, but looks like a quick win.
This issue also exists now with the released 3.5.0.
@bjo81 which app is that?
In my opinion it should go this way
There is no reliable way of doing that. But you can monitor mtime and size and start uploading only after period if inactivity. Not perfect, but looks like a quick win.
We could do this, but this might also result in new questions/problems, e.g. timeout, how long to wait, …
I do no recording, in my case it's "Banking4" which does automatic syncing every hour and stores a file in /Documents. Nextcloud should upload the updated file and refuses it due to "conflict", with <3.5.0 it was simply overwritten.
So I did this to test
Most helpful comment
There is no reliable way of doing that. But you can monitor mtime and size and start uploading only after period if inactivity. Not perfect, but looks like a quick win.