Am able to see the link for download. The link will be something like this:
However I need to read the content of this file as BLOB.
Is this possible using a http GET request or something?. Please let me know how to achieve this.
And when I checked this link https://www.dropboxforum.com/t5/API-Support-Feedback/Get-Access-Token-from-Chooser-API/td-p/269129, they have mentioned about GET, but am not able to do a successful get call using the link returned by chooser. ( Is it possible to simulate the GET in Chrome Postman? ). Also is there additional we need to pass for GET, for instance, access token or anything else?
The Chooser doesn't offer a way to retrieve a blob, but you can download it directly using a GET request, as you mentioned and linked to.
Exactly how you do so is up to you, depending on what tools you have available. For example, you may want to use the jQuery get method, or just a XMLHttpRequest.
You don't need to supply anything extra to access the returned direct link.
@Greg, Thanks. I am able to successfully retrieve the data. However, when the file is selected, as a part of the metadata of the file that is returned(id, name, link etc), I would also need mime type of the document I selected. Is there a way to get this?. Kindly let me know.
We do not currently include the MIME type in the response from metadata returned by the Chooser. I have filed this as a feature request for the Chooser.
In cases where the returned file name includes a file extension, is it possible to infer the MIME type from the file extension?
Have a question? Our Dropbox Community is here to help you find an answer!
You won’t have to wait too long for a reply, but why not learn more about the Community while you’re here.
Not the right discussion for you? Find out what else our Community has to say about API Support.
Or, search our Help Center for even more.