Download file directly from dropbox (no sign in) - dropbox

Is there a way to download file directly from dropbox without logging in. I find this to be a serious limitation. I want to link a few files from website. Can this be done in dropbox?
I realise this can be done with an api (at least in theory) but I have no idea what the link should look like. Cheers.

If you have a Dropbox shared link for a file that can be accessed publicly, you can download from it programmatically.
You can download directly using the link as documented here:
https://www.dropbox.com/help/desktop-web/force-download
Or, you can use the API via the /2/sharing/get_shared_link_file endpoint:
https://www.dropbox.com/developers/documentation/http/documentation#sharing-get_shared_link_file

Related

How to copy Dropbox file link from Dropbox folder using vb.net

enter image description here
I use Dropbox folder by setup Dropbox program in my computer
When I have to get direct link to any file in Dropbox folder just I go to Dropbox folder in my computer and choose that file and right click by mouse and select copy direct link of that file
How I do that by vb.net
I want to brows for file and select it and get that direct link by vb.net
And I am sorry for my bad English
[Cross-linking for reference: https://www.dropboxforum.com/t5/Discuss-Developer-API/How-do-I-get-the-share-url-of-a-local-dropbox-file-using-vb-net/m-p/345339 ]
The kind of Dropbox link you're referring to isn't a "direct" link, but rather a "shared" link, where the link itself points to an HTML preview page, where the user can download the file if they want. You can find information on this feature here:
https://help.dropbox.com/files-folders/view-only-access
Dropbox does offer an API you can use for listing, uploading, downloading, and sharing files, among other operations. You can find everything you need to get started with the Dropbox API, including documentation, tutorials, and SDKs here:
https://www.dropbox.com/developers
Dropbox does offer a .NET SDK in particular:
https://github.com/dropbox/dropbox-sdk-dotnet
To create a shared link for a file or folder using the .NET SDK, you would use the CreateSharedLinkWithSettingsAsync method:
https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Sharing_Routes_SharingUserRoutes_CreateSharedLinkWithSettingsAsync_1.htm

Access shared file in Dropbox API

I need to regularly download a file that someone shared with me on Dropbox.
I manage to list all my shared links through the HTTP API (https://www.dropbox.com/developers/documentation/http/documentation#sharing-list_shared_links) but this don't list the file I want.
I can't figure out what is the correct way to download through the API a file that someone shared with me. Here below you can see the print screen on Dropbox where this files is, if it can help...
Based on your screenshot, it sounds like you need to use the /2/sharing/list_received_files and /2/sharing/list_received_files/continue endpoints instead.

Dropbox Dropin Saver - Can I upload files from a computer?

I am using Dropbox's Dropin Saver to upload files into my Dropbox account. Can I upload a file from my computer (not from a web site)?
No. Presumably the user could just do that on dropbox.com if they wanted?
As finding the straight-forward solution to your question is still not easy, let me point you to the Dropbox API Explorer:
Create a Dropbox Web-App with a few clicks.
Use its Access Token in the Dropbox API Explorer/upload to create a code snippet including a preview for what you are looking for.
Use the cURL or Python code in your code.

Retrieve all image files using Dropbox Core API

I am working on Dropbox Core API with Google App Engine (python). There seems to be some problems with Dropbox-python-sdk on GAE. Therefore, I have choose to use the Core APIs directly.
My app is trying to retrieve all image files from a user's dropbox (with file type permission). But I couldn't find a way to get all files without specifying the root/path (all the APIs stated here requires a specific file path)
Any idea?
EDIT Dropbox actually recommends not automatically recursing via /metadata calls. (See https://www.dropbox.com/developers/core/bestpractices.)
There's no method to get a recursive list of files, so you would need to use /search to find files or /delta with no cursor to get the full list of files.
Could the Chooser be an option here (if you're just trying to let the user pick individual files)?

Prompt user to save on download from Dropbox

I want to have a link to download a file from Dropbox that prompts the user instead of displaying the file in the browser. This probably requires setting a content-disposition header to 'attachment'.
I'm currently using the dropbox media URL as described here:
https://www.dropbox.com/developers/reference/api#media
It seems my alternative might be to create a proxy, but I'd obviously like to avoid that.
Is there a way to get this behavior from a direct Dropbox link?
Found the answer myself.
As documented here:
https://www.dropbox.com/help/201
just add dl=1 to the URL.