You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Nellyb43
4 years agoHelpful | Level 6
Dropbox API Creating Shared link settings Error.
I have a program in Python 3.9 which cleans data every morning, creates a final dataset, and then uses the dropbox api to create a shared link with settings (password) for the file, then email that l...
- 4 years ago
Very interesting. Do you recommend I upload the file straight to dropbox using the API over using util to simply copy it over from my local directory?
I arbitrarily chose 60 seconds of time to give dropbox time to fully sync up the file in the application folder. Each file is on average 500MB. Do you recommend I go with a longer length of time just to make sure the sync works with sharing no matter what. One minute here and there is no issue.
Nellyb43
Helpful | Level 6
So, when running my program I generate the dataset in a folder not in the dropbox app folder, then use shurtil.copyfile to copy that file into the dropbox application folder.
shutil.copyfile(oldpath,dropbox_app_path)
Then to create dailyfile_csv I do
dailyfile_csv = newpath_csv_dbx.replace('\\','/')[40:]
This takes something like ""D:\Dropbox\Apps\App Folder Name\Daily Data (2020-12-29).dta" and turns it into "/Daily Data (2020-12-29).dta", which is what the dropbox api wants.
I do indeed see my file "dailyfile_csv" in the application folder - is there anything else that may be going on?
Nellyb43
4 years agoHelpful | Level 6
That smiley face is actually: "40 colon ]"
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,910 PostsLatest Activity: 3 days agoIf 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 or Facebook.
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!