How to get direct link of the file from Dropbox Chooser - dropbox

In the document of Dropbox Chooser we can get a share page url from files[0].link, but we need direct download link. How do I get it?

I found the solution in the forum.
Added data-link-type="direct" attribute for the Dropbox chooser button.
<input type="dropbox-chooser" name="selected-file" data-link-type="direct" style="visibility:hidden"/>

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

Open specific folder in Dropbox Chooser

Is it possible to specify which folder to open in Dropbox Chooser (or Dropbox API) ?
Right now it opens the root directory
No, sorry! But we're tracking this as a feature request.

How can I get link for HTML files from Google Drive?

I am writing an iOS application, and I have some HTML files stored on Google Drive. I would like to retrieve the HTML file's links.
Any idea to get the HTML link from Google Drive?
If you're unable to hardcode the values of the file's URL, the only alternative is to use the Google Drive API on iOS.

How to upload file from my iphone application to user own dropbox?

I had created an iphone application witch can generate a pdf file when the user use the application.
how can the user have the option to sent the pdf file to his own dropbox?
I had tryed with dropbox examples: where i can make an api and upload to my own dropbox.
But it's not what i want.
I want my application to do so: when the user generates a pdf file, so the login box of dropbox apear so he can log in and upload the file automaticaly to his own dropbox.
I have google it, but i did't get any examples including this solution.
Please help me if you can.
Have you looked at this blog post that i think describes what you are looking for.
http://www.drdobbs.com/tools/working-with-dropbox/232600482?pgno=1

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.