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
alicera
3 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 ?)
Greg-DB
3 years agoDropbox Staff
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.
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!