We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
alicera
4 years agoExplorer | Level 3
get dropbox link with code
Can I upload my file to dropbox some loacation and get the dropbox link to share?
All the step are doing by code
do you have the code?
(python? javascript ? shell ?)
1 Reply
- Greg-DB4 years ago
Dropbox Community Moderator
Yes, you can upload files to Dropbox using the Dropbox API /2/files/upload endpoint (or see that documentation for information on large files) and /2/sharing/create_shared_link_with_settings to create shared links. The documentation linked there has example code for calling these endpoints using curl in the shell. You can also use the API v2 Explorer to prototype and test these calls, as well as see the corresponding example code, such as for /2/files/upload and for /2/sharing/create_shared_link_with_settings. (Click "Show Code" to see the code.)
Those are links to the documentation for the HTTPS endpoints themselves, but we recommend using one of the official SDKs if possible. Those have corresponding native methods for the HTTPS endpoints. For example, files_upload and sharing_create_shared_link_with_settings in the Python SDK, and filesUpload and sharingCreateSharedLinkWithSettings in the JavaScript SDK.
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!