cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Update: Find information on Dropbox support during COVID-19 here
Close
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

How i can get only images from dropbox in iOS app?

New member | Level 1
New member | Level 1

Is there any property of DBMetaData that I can use to load images only.

My Logic : 

  if fileMetaData.isDirectory

            {

                 self.restClient.loadMetadata(fileMetaData.path)

            }

            else

if    fileMetaData.isOfImageType         {

            self.restClient.loadFile("\((tempFile as! DBMetadata).path)", intoPath: localPath)

            }

 

2 Replies 2
Highlighted

Re: How i can get only images from dropbox in iOS app?

Super User II
Super User II

Moved to the API forum.

Highlighted

Re: How i can get only images from dropbox in iOS app?

Dropboxer
Dropboxer

It looks like you're using the iOS Core SDK. No, the DBMetadata object in that doesn't offer anything quite like that. You can pull the file extension off of the file name though and compare that to a list of image file extensions you're interested in though.

(Also, I should note that the iOS Core SDK uses API v1, which is deprecated.)

Work Smarter with Dropbox

The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.

Sound good? Let's get started.
Who's talking

Top contributors to this post

What do Dropbox user levels mean?
Need more support?