We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
anton_oas
6 years agoNew member | Level 2
Access file(xlsx) data programmatically
What I want to do is acess data from an .xlsx-file stored inside my dropbox with the help of some javascript and then use that data inside a graph displayed on a website.
What I have done so far is to use the Dropbox API to gain access to a SharedLink. This makes it possible for me to access the file manually when I click the link but I get errors when I try to access the xlsx-data with javascript from that link because it cant recognize it as en xlsx when in the preview format provided by the SharedLink.
Is there a way to get a direct link to the file without having to download it the way dl.dropbox.com/..... does or can I access the data in another way?
Thanks in advance
First, if you're not already, we recommend using the official Dropbox API v2 JavaScript SDK.
Using that, if you want to directly access file data, the standard way to do so is using the filesDownload method. You can access the resulting file data via the 'fileBlob' field on the returned object, the same as shown in this example.
Or, if you need a URL directly to the file on the Dropbox servers, you can instead use the filesGetTemporaryLink method. The resulting FilesGetTemporaryLinkResult.link will be a temporary direct link to the file data on Dropbox.
- Greg-DBDropbox Staff
First, if you're not already, we recommend using the official Dropbox API v2 JavaScript SDK.
Using that, if you want to directly access file data, the standard way to do so is using the filesDownload method. You can access the resulting file data via the 'fileBlob' field on the returned object, the same as shown in this example.
Or, if you need a URL directly to the file on the Dropbox servers, you can instead use the filesGetTemporaryLink method. The resulting FilesGetTemporaryLinkResult.link will be a temporary direct link to the file data on Dropbox.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months 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!