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

How sync files as like the dropbox app? #133

Open
mamcx opened this issue Nov 11, 2016 · 5 comments
Open

How sync files as like the dropbox app? #133

mamcx opened this issue Nov 11, 2016 · 5 comments

Comments

@mamcx
Copy link

mamcx commented Nov 11, 2016

I need to provide a sync facility for some files. I wish to let dropbox do the work.

I integrate the api, but the end-result behave as a normal upload operation. If I have 5 files that need to sync, the api upload all of them again, instead of just sync the changes.

I wish to have the same behaviour as with the dropbox client. Is this possible with this API?

If not, then how I can send files to be openned in the native iOS client?

@greg-db
Copy link
Contributor

greg-db commented Nov 11, 2016

The Dropbox API offers an interface for uploading and downloading files on demand, as you noted. It doesn't provide any sort of pre-built sync solution, but I'll be sure to pass this along as a feature request. That being the case, you'll need to implement whatever syncing logic you need for your app in your app's code using the Dropbox API.

For example, your app should upload files only when you have local changes to upload. (The API doesn't offer the capability to upload only the changed portions of an individual file though, as opposed to the entire file. Is that what you're looking for?)

There also isn't an interface for deep-linking or otherwise using the official iOS app to display files, but we'll consider that a feature request as well.

@mamcx
Copy link
Author

mamcx commented Nov 11, 2016

I fear that. Is possible to offer the "Open in Dropbox" from my app?

@greg-db
Copy link
Contributor

greg-db commented Nov 11, 2016

No, that would be a sort of "deep-linking" feature I was referring to, which the API doesn't offer. Apologies I don't have a better answer for you!

@bhhales
Copy link

bhhales commented Jan 20, 2017

Along similar lines, are there plans to add push notification support, so our apps can be notified when there are changes?

@greg-db
Copy link
Contributor

greg-db commented Jan 20, 2017

No plans for that that I'm aware of, but I'll send this along as a feature request.

The closest we have for client-side apps is to use listFolderLongpoll while the app is open. Or, if you have your own server, you can use webhooks and trigger push notifications from your server.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants