Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
mikescano
8 years agoNew member | Level 2
copy from google drive to dropbox using a batch file
Hi all, I should need to copy my google drive into dropbox, and I have to do it via scheduled batch job. Is there a way to write a (hope simple) script? thank you! mike
Greg-DB
Dropbox Community Moderator
8 years agoDropbox does offer the ability to upload files programmatically. You can use /2/files/upload to do so:
Or, for large files, you'll need to use upload sessions:
- https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-start
- https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-append
- https://www.dropbox.com/developers/documentation/http/documentation#files-upload_session-finish
Alternatively, if you can get Internet-access URLs for the files, you can use /2/files/save_url instead:
- https://www.dropbox.com/developers/documentation/http/documentation#files-save_url
- https://www.dropbox.com/developers/documentation/http/documentation#files-save_url-check_job_status
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible:
https://www.dropbox.com/developers/documentation
Those have corresponding native methods for the HTTPS endpoints.
- mikescano8 years agoNew member | Level 2
Thank you so much Greg
do you think I can find an example (also a simple example) from which I can start?
just something to modify with my need
many thanks again for your help, appreciate
- Greg-DB8 years ago
Dropbox Community Moderator
Each endpoint has a curl example in the documentation (in the links in my previous post). I recommend reviewing those and translating them for your platform as necessary.
The API v2 Explorer may also be useful in this regard:
https://dropbox.github.io/dropbox-api-v2-explorer/
The SDKs each also have some examples included.
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!