We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
VyacheslavB
5 years agoHelpful | Level 5
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.
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.
- Greg-DBDropbox Staff
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
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 7 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!