You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

VyacheslavB's avatar
VyacheslavB
Helpful | Level 5
5 years ago

How to get properties of a music file from metadata (Swift 5)

I'd like to get such properties of a music file as its artwork, duration, file size. But I do not find these properties in "entry" in the "result.entries" array.
  • Greg-DB's avatar
    5 years ago

    The Dropbox API does not extract and return media information such as artwork and duration for audio files, but I'll pass this along as a feature request. I can't promise if or when that might be implemented though. That being the case, to access this information, you'd need to download the file and extract the desired information from the audio file data.

     

    The Dropbox API does return file size information, but you'll need to cast the Metadata as FileMetadata first, like in this example, to access the properties specific to FileMetadata. Then you can access FileMetadata.size.

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback

Find help with the Dropbox API from other developers.

5,910 PostsLatest Activity: 3 days ago
333 Following

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!