nextcloud / android

📱 Nextcloud Android app
https://play.google.com/store/apps/details?id=com.nextcloud.client
GNU General Public License v2.0
4.18k stars 1.75k forks source link

Add a 'force upload/sync' button #7019

Open ppattard opened 3 years ago

ppattard commented 3 years ago

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

--

Derkades commented 3 years ago

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.

datenheim commented 3 years ago

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...

tobiasKaminsky commented 3 years ago

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

Derkades commented 3 years ago

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.

tobiasKaminsky commented 3 years ago

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.

codereptile commented 2 years ago

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

panasenco commented 5 months ago

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.
regs01 commented 2 months ago

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.

EmberHeartshine commented 2 months ago

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

shalak commented 2 months ago

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