cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

Dropbox file path for direct acces

New member | Level 1
New member | Level 1

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 ?

6 Replies 6
Highlighted

Re: Dropbox file path for direct acces

Super User alumni
Super User alumni
Highlighted

Re: Dropbox file path for direct acces

New member | Level 1
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.

Highlighted

Re: Dropbox file path for direct acces

Dropboxer
Dropboxer

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.

Highlighted

Re: Dropbox file path for direct acces

New member | Level 1
New 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.

Highlighted

Re: Dropbox file path for direct acces

New member | Level 1
New member | Level 1

I am looking at the same issue for Python API v2, is there a solution to this one yet?

Highlighted

Re: Dropbox file path for direct acces

Dropboxer
Dropboxer

Yes, there's a new files_get_temporary_link method in the Python SDK you can use:

https://dropbox-sdk-python.readthedocs.io/en/master/moduledoc.html#dropbox.dropbox.Dropbox.files_get...

And for reference, in the .NET SDK, that's GetTemporaryLinkAsync:

https://dropbox.github.io/dropbox-sdk-dotnet/html/M_Dropbox_Api_Files_Routes_FilesRoutes_GetTemporar...

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?