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 ?)
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.