android icon indicating copy to clipboard operation
android copied to clipboard

Add a 'force upload/sync' button

Open ppattard opened this issue 5 years ago • 8 comments

Is your feature request related to a problem? Please describe.

When putting Android into powersave mode (with network disabled in background), automatic uploads won't start when a new picture is taken from the camera. I always have to exit the powersave mode first, go into Nextcloud and wait for it to find the new pictures. It usually takes between 30s and up to several minutes for it to actually start the upload.

Describe the solution you'd like

A force upload button in the UI, for instance on uploads history panel, or from the panel where you configure upload folders, to trigger the new file detection and automatic upload would be a nice workaround to avoid having to wait.

Describe alternatives you've considered

Fixing the upload that do not start when in powersave mode (even when the screen is on and not locked), but I'm not sure if this is possible or if this is a limitation of Android.

Additional context

--

ppattard avatar Sep 27 '20 08:09 ppattard

I agree that a force upload button would be useful. In my case I have it configured to only upload when charging, but there are times where I need a file uploaded immediately.

Fixing the upload that do not start when in powersave mode (even when the screen is on and not locked), but I'm not sure if this is possible or if this is a limitation of Android.

I don't think this is a good solution. Apps should save power when in power saving mode. If a user enables power saving mode in some situation where they need their phone to keep working and are not able to charge it, they usually wouldn't want nextcloud to waste valuable energy uploading files.

A force button will make everyone happy.

Derkades avatar Oct 20 '20 16:10 Derkades

This would be useful indeed. Possibly can be put together with "Pause/restart aborted auto-uploads?" #6823 Also "Disable autoupload" #6505 is somehow connected to this...

datenheim avatar Oct 31 '20 08:10 datenheim

Force upload is already implement: if you go to upload view and swipe to refresh, then a manual auto upload detection job is triggered.

tobiasKaminsky avatar Nov 12 '20 14:11 tobiasKaminsky

It may detect new files but it does not "force upload" them. If it is waiting for battery saver to be turned off or the phone to start charging it will still be waiting.

Derkades avatar Nov 13 '20 23:11 Derkades

Ah right :+1: Then I would suggest a "play/resume/restart" button next to "cancel" on active group, which then overrides all checks as a one-timer.

tobiasKaminsky avatar Nov 16 '20 07:11 tobiasKaminsky

Any progress on this? I would LOVE to see this, because I often find it difficult to start uploading existing files when creating a new 'auto upload' catalogue

codereptile avatar Mar 06 '22 22:03 codereptile

Ran into the same issue, my workaround:

Use custom syncs instead of predefined ones

  1. Go to Settings > Auto upload
  2. Disable syncs for all predefined places there.
  3. Instead, hit the three dots in the top right and click "Set up a custom folder". Select the local and remote folders. Be sure to set "What to do if the file already exists?" to Skip uploading.
  4. Save the sync. It should start.

Delete and re-create the custom sync to force sync

When you need to force sync:

  1. Go to Settings > Auto upload.
  2. Click the three dots next to the custom sync > Configure.
  3. Delete the custom sync.
  4. Recreate as described above.
  5. The sync should start. All files that already exist in NextCloud will be quickly skipped.

panasenco avatar Apr 15 '24 02:04 panasenco

This is indeed very sharp issue. Quite often you make a photo and screenshot and need it immediately on you computer, but you have to wait half a hour until it syncs automatically.

There is a pause button in Upload status screen. Just make it force resync, every time you resuming syncing, so you can just press pause and resume to force do now.

regs01 avatar Jun 27 '24 10:06 regs01

Four years and no progress on this. Feature parity with the desktop sync client is a must.

EmberHeartshine avatar Jul 25 '24 01:07 EmberHeartshine

Is there a workaround simpler than what was already suggested? It doesn't start when I plug in the phone to charger...

shalak avatar Jul 26 '24 14:07 shalak