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 let response = response, let thumbnailPath = response.0.pathLower {
print("Thumbnail: \(thumbnailPath), original: \(self.file.pathLower), size: \(response.0.size)")
}
}Prints (for a photo):
Thumbnail: /foto.jpg, original: /foto.jpg, size: 131816
Prints (for a video):
Thumbnail: /test/20170408_134934.mp4, original: /test/20170408_134934.mp4, size: 65015200