Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
gauravpant
10 months agoNew member | Level 1
How can I create Dropbox autosync feature for my app ?
Hello everyone, I want to create an Autosync like feature in my app where a user connects his dropbox account, I get his refresh token. Then, using the dropbox sdk , I want to autosync all his pdfs...
gauravpant
9 months agoNew member | Level 1
Hi DB-Des , I will explain my usecase .
In my app , a user connects his Dropbox account , his refresh token is stored in the application database.
Now, I want to have an autosync like functionality where as soon as the user has connected his dropbox account, my app autosyncs all the pdf files to my application server that this user has stored in his dropbox account.
Now, to implement such a functionality , I would need to have the total number of files that will be synced by Autosync .
I will store this variable in my database , I've a GET api that is used to get the total number of files that are being synced , I show it in frontend of my application.
I also have a variable 'syncedFileCount' , which gets incremented everytime a file is downloaded to my application server .
How can I develop this 'process_user' function that you can see in the code that I've shared above ?
- DB-Des9 months ago
Dropbox Community Moderator
Dropbox sends webhook notifications only when users' files change, not for login activity.
If you’re looking to trigger autosync functionality when a user logs into their Dropbox account, you would need to implement a solution on your end to initiate the sync process accordingly.
That said, the logic you shared for retrieving user files, filtering through them, and uploading them appears accurate. If you notice any unexpected behavior from the API or encounter any errors, feel free to let us know.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!