cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Are you new to Dropbox? Our Newcomers group is the perfect place to learn the basics, find out more here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Streaming an mp3 file fetched from a node server for a React app.

Streaming an mp3 file fetched from a node server for a React app.

richardantao
Explorer | Level 4
Go to solution

Hello,

 

I am trying to send an array of mp3 files from a Node server to a React app for user's to stream the audio files. I tried using the filesListFolder method from the SDK, but there is no attribute in the response object to src the files and stream them. Is this functionality possible with the API?

1 Accepted Solution

Accepted Solutions

Greg-DB
Dropbox Staff
Go to solution

The filesListFolder/filesListFolderContinue methods only return metadata about the files/folders, but don't themselves offer any way to access the actual file data.

 

If you need to access the file data, you can use the filesDownload method to retrieve the file data directly, or the filesGetTemporaryLink method to get a link to the file. It sounds like filesGetTemporaryLink may be what you're looking for in this case, but keep in mind those links expire after four hours.

View solution in original post

2 Replies 2

Greg-DB
Dropbox Staff
Go to solution

The filesListFolder/filesListFolderContinue methods only return metadata about the files/folders, but don't themselves offer any way to access the actual file data.

 

If you need to access the file data, you can use the filesDownload method to retrieve the file data directly, or the filesGetTemporaryLink method to get a link to the file. It sounds like filesGetTemporaryLink may be what you're looking for in this case, but keep in mind those links expire after four hours.

richardantao
Explorer | Level 4
Go to solution

filesGetTemporaryLink is the one! I need a long list of mp3 files so I will call this method recursively, assuming there is no other method to fetch an array of temporary links.

Need more support?
Who's talking

Top contributors to this post

  • User avatar
    richardantao Explorer | Level 4
  • User avatar
    Greg-DB Dropbox Staff
What do Dropbox user levels mean?