Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Synchronize should also upload locally created files #8078

Open
radry opened this issue Feb 27, 2021 · 25 comments
Open

Synchronize should also upload locally created files #8078

radry opened this issue Feb 27, 2021 · 25 comments
Labels
enhancement feature: sync and upload Syncing or uploading (that isn't auto upload specific)

Comments

@radry
Copy link

radry commented Feb 27, 2021

Steps to reproduce

  1. Tab ... menu next to a remote folder and select "Synchronize"
  2. Wait for the download to finish
  3. Locally on the Android device change a file or create a new file/folder in the directory that was just "synchronized"
  4. Repeat step 1

Expected behaviour

  • As the name "Synchronize" suggests, the locally changed or newly added file should be uploaded to the remote folder.

Actual behaviour

  • Nothing get's uploaded

Conclusion

  • The feature "synchronize" does in fact not synchronize anything but only downloads the remote folder to make it available offline. It should be labeled "Make available offline"

Environment data

Android version: 11

Device model: Galaxy tab S7

Stock or customized system: Stock

Nextcloud app version: 3.15.0

Nextcloud server version: 20

@radry radry added the bug label Feb 27, 2021
@tobiasKaminsky tobiasKaminsky added the needs info Waiting for info from user(s). Issues with this label will auto-stale. label Mar 1, 2021
@tobiasKaminsky
Copy link
Member

It also synchronizes content if the file is changed locally, but you are right that it does not upload newly added files.

@tobiasKaminsky tobiasKaminsky added enhancement and removed bug needs info Waiting for info from user(s). Issues with this label will auto-stale. labels Mar 1, 2021
@tobiasKaminsky tobiasKaminsky changed the title Synchronize is mislabeled Synchronize should also upload locally created files Mar 1, 2021
@radry
Copy link
Author

radry commented Mar 1, 2021

@tobiasKaminsky I intentionally named the issue that way because in the current state it is mislabeled and thus a BUG. This isn't a feature request for 2-way sync, we have other issues for that

@tobiasKaminsky
Copy link
Member

True, in short term we can rename it, so it is more clear.
Do you have an idea?
"Synchronize existing files" maybe?

@radry
Copy link
Author

radry commented Mar 2, 2021

I'm getting mixed information from you here you claim that downloaded files (which I think applies to "syncronize" too?) Do indeed synchronize.

Can you or someone else please elaborate what exactly "downloading" a remote file or using the "synchronze" function does?
As I explained in the issue, it seems to me that it only downloads remote files but doesn't consider changes to downloaded files, nor detects new files. This is really confusing.

@tobiasKaminsky
Copy link
Member

Sync on a folder does:

  • download all files from server
  • updates all files from server
  • uploads any change of existing files on server
  • does not upload new files

@farynaio
Copy link

I agree with @radry, this is confusing that sync doesn't upload new files in synced folders. As all the files are synced this feature should be named "make available offline" or similar.

I also noticed while in airplane mode, synced files are read only, which literally kills the purpose of offline files.

Other than that, NextCloud is really impressive product.

@weiss-d
Copy link

weiss-d commented Aug 1, 2021

Was unhappily surprised when I realized, that Sync doesn't upload locally created files 😟
I'll highly appreciate if you add this feature because syncing files across different devices is one of the main points of using NC for me.

@joshgiesbrecht
Copy link

This feature, please!

@squid-f
Copy link

squid-f commented Dec 12, 2022

Hi. iOS has been having it for a while. Is it really different (code wise) to activate it for Android as well?

@EBendinelli
Copy link

Bumping this, started using Obsidian recently and was expecting a two way sync like on the desktop.

If I add a new file in windows under a Nextcloud folder it gets uploaded to remote. If I do that on Android the file isn't detected (can't see it from the Nextcloud app) and doesn't get uploaded.

@jiriks74
Copy link

Tried to use obsidian as well. Once I synchronized I was really unpleasantly surprised that it does not sync newly created files.

PS: syncing new files is one of basic features you need in a cloud client. Cloud is used as a backup many times and this does not allow you to backup anythig... Apart from photos. I want to backup my sms for example, but the app does not upload new backup files... This app is literally useless for me... Please change the label (and implement this).

@cukabeka
Copy link

cukabeka commented Jan 6, 2023

Same here: Usecase is Obsidian. Makes no sense at all that the label is labeled "Sync Folder" in that case. My expectation was exactly that it would sync what happens in my local folder, too. Syncing means keeping things in sync.
So I vote as well for either renaming the label or adding the functionality as syncronization. My vote intends the actual syncing.

PS: I would really like to understand the reason why this is implemented differently. Is there a technical problem with this?

@Discostu36
Copy link

As a workaround: Wouldn't it work to set the folder to "sync" and also add it as an auto-upload folder to get full 2-way-synch?

@Discostu36
Copy link

Besides, I think this is a duplicate of #19

@EBendinelli
Copy link

As a workaround: Wouldn't it work to set the folder to "sync" and also add it as an auto-upload folder to get full 2-way-synch?

I'm not sure what you're proposing but I've played with auto-upload thinking it could be the solution without success.

What I had done was to have a folder in Android (say /Documents/Obsidian-vault) and select it as auto-upload in Nextcloud. This solved the issue of not having new files created in Obsidian seen and uploaded by Nextcloud. Basically, creating a file within Obsidian would trigger auto-upload and now my folder server-side would be up to date.

The issue with this is that updating files server-side (say after using Obsidian on the desktop) isn't reflected on the phone. Auto-upload is unidirectional as far as I can tell, it copies everything that is created locally to remote but won't do the opposite.

I tried to cheat and select the already locally sync folder inside the Nextcloud (/storage/emulated/0/Android/media/com.nextcloud.client/Obsidian-vault) but that doesn't seem to work. Files created in Obsidian aren't detected and uploaded.

@Discostu36
Copy link

I'm not sure what you're proposing but I've played with auto-upload thinking it could be the solution without success.

I tried to cheat and select the already locally sync folder inside the Nextcloud (/storage/emulated/0/Android/media/com.nextcloud.client/Obsidian-vault) but that doesn't seem to work. Files created in Obsidian aren't detected and uploaded.

Yeah, that cheat was the idea I had. Too bad it doesn't work.

@karussell
Copy link

What worked for me was to add a new folder under "Settings" -> "Auto upload". Now new files in this folder will appear automatically on the server. Really strange that this is so hidden.

@dantescanline
Copy link

what worked for @karussell seems to have worked for me, but yes this interface is very strange. I wish it worked like the desktop where you could manually set some folders to sync in one place

@joshtrichards joshtrichards added the feature: sync and upload Syncing or uploading (that isn't auto upload specific) label Oct 12, 2023
@belst
Copy link

belst commented Nov 29, 2023

I also need this, often times I need to modify/create some pdfs (taking notes during lectures for example) on my tablet and synchronize them as soon as a connection is available (it not always is)

@Fmstrat
Copy link

Fmstrat commented Dec 5, 2023

The core feature of Nextcloud, with an issue open for 2.5 years?

@Fmstrat
Copy link

Fmstrat commented Dec 5, 2023

What worked for me was to add a new folder under "Settings" -> "Auto upload". Now new files in this folder will appear automatically on the server. Really strange that this is so hidden.

This doesn't fully work. You can do this and set up folder sync for the folder, so you get downloads and uploads, but if you rename a file, now the server has 2 copies.

@Solar-Simon
Copy link

Waiting for this since years, and really expected this to be a core feature of a cloud app.

My workaround is to use FolderSync
Unfortunately i don't find an app in F-Droid for that purpose.

@erentar
Copy link

erentar commented Feb 17, 2024

Waiting for this since years, and really expected this to be a core feature of a cloud app.
First suggested in November 2017 https://help.nextcloud.com/t/nextcloud-android-app-automatically-sync-files-folders/23123
I also am using obsidian with nextcloud and this makes it impossible

@tsjordan-eng
Copy link

I'll just pile on this and say I figured out this didn't work the same way @erentar did: through Obsidian. I used @Solar-Simon's solution of FolderSync

@sunjam
Copy link

sunjam commented Feb 24, 2024

Isn't this issue a duplicate of

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement feature: sync and upload Syncing or uploading (that isn't auto upload specific)
Projects
None yet
Development

No branches or pull requests