Start 2025 on time and up to date! Seamlessly integrate your calendars into Dropbox with these simple steps! 📆

Forum Discussion

alyoka's avatar
alyoka
New member | Level 2
8 years ago
Solved

SwiftyDropbox getting image/video thumbnail

I'm trying to get a thumbnail but seem to receive the path to the original image/video. What am I doing wrong?   client.files.getThumbnail(path: file.pathLower).response{ response, error in if le...
  • Greg-DB's avatar
    8 years ago

    The files.getThumbnail call is a "download-style request", like files.download. The response.0 will be the original file metadata, so response.0.pathLower is the original file path. To get the data for the thumbnail, you should use response.1, like in the files.download example here:

     

    https://github.com/dropbox/SwiftyDropbox#download-style-request

About Dropbox API Support & Feedback

Node avatar for Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.5,936 PostsLatest Activity: 31 minutes ago
346 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!