We're making changes to the Community, so you may have received some notifications - thanks for your patience and welcome back. Learn more here.
Forum Discussion
Deac P.
9 years agoNew member | Level 1
Dropbox file path for direct acces
Hi everyone,
I'm trying to develop a web application which would allow me to play audio files from my dropbox account. I'm using the Dropbox API to navigate through the files and folders in my account and get only the audio files i want. Is it possible to get the full path to a file from my account that would be accesible by everyone who has a valid acces token ?
From what i could find out until now the Metadata's of the files retrieved by the ListFolderAsync method is not retriving any absolute urls to a specific file.
All i could find is that i can download a file in memory using the DownloadAsync method, but i think there must be a way of directly accesing a file, using the acces token offcourse, so that i don't have to download the file in memory and save it as mp3.
What i basically want is to be able to construct an absolute url to a file that i could pass to a html5 audio player src.
Does anyone have any idea ?
- Deac P.New member | Level 1
Thanks Richard.
It's a bit more clearer now. I was using the Dropbox.Net library to acces dropbox (https://www.dropbox.com/developers/documentation/dotnet) which seems that doesn't have all the functions from the Core API implemented.
I'll search for an alternative library or build a wrapper on top of it adding the other functions i need.
- Greg-DBDropbox Staff
Dropbox API v2, which the .NET SDK uses, doesn't currently offer an equivalent of the v1 /media endpoint, but I'll be sure to pass this along as a feature request.
- alexandra a.10New member | Level 1
Hello, I'm having the same problem. It would be great if you can share a solution in case you've found one.
- DaveCloudNew member | Level 1
I am looking at the same issue for Python API v2, is there a solution to this one yet?
- Greg-DBDropbox Staff
Yes, there's a new files_get_temporary_link method in the Python SDK you can use:
And for reference, in the .NET SDK, that's GetTemporaryLinkAsync:
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,875 PostsLatest Activity: 3 hours 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!