owncloud / owncloud/android

Two way sync - potential solution

Open
#1,882 11 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Kotlin
Stars
4.2k
Forks
3.1k
Avg merge
1d 12h
Merged PRs (30d)
7

Description

Actual behaviour:
  • Files created in a folder which has been previously marked ad "available offline" are not automatically uploaded
Expected behaviour:
  • 2way sync (as mentioned in: #1663, #1683, #1437, and #960)
    Any file created in that folder should be automatically uploaded.
Potential temporary solution:

A free third-party app Tasker (https://tasker.dinglisch.net/) is capable of: 1) running a background service monitoring changes in files and folder, 2) sending different types of intents.

  1. Would it be possible to send an intent to the ownCloud client forcing upload of a single file?
  2. What is the intent and syntax of the additional data that needs to be provided for a successful request (I assume at least the local path to the file). After brief analysis of the code I found this: com.owncloud.android.files.services.FileUploader, but I am not sure if this is the correct one.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing com.owncloud.android.files.services.FileUploader and the related issues #1663, #1683, #1437, and #960. Determine whether the requested two-way sync behavior or a Tasker-triggered single-file upload is in scope; completion would require a clearly defined request, intent data syntax, and upload behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, kotlin
Domain
cloud, mobile
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.