One month down in 2025: How are your resolutions coming along? Check out how to get back on track here.
Forum Discussion
richardantao
5 years agoExplorer | Level 4
Streaming an mp3 file fetched from a node server for a React app.
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?
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.
- Greg-DB
Dropbox Staff
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.
- richardantaoExplorer | Level 4
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.
About Discuss Dropbox Developer & API
Make connections with other developers803 PostsLatest Activity: 2 hours ago
If 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!