i want to show my pdf,doc file and created any folder inside dropbox.here i got list of pdf file and doc file but i does not get any solution how to show folder.plz help me.
this code i am using for showing doc , pdf file and i want show folder.which extension i use for showing folder in my IOS app?
NSArray* validExtensions = [NSArray arrayWithObjects:@pdf, @docx,@doc, nil];
Hi Sudip - to clarify, do you want to know what extension to use to check for a folder in the list of Dropbox contents? What code are you using to get the list from Dropbox?
Folders do not have extensions, but I don't think looking for 'nil' is what you want. You can check if an entry is a folder, not a file, but looking at the type of metadata returned by the call to listFolder, and checking if it's FileMetadata or FolderMetadata. See the "Upload a File" section of the iOS tutorial here: https://www.dropbox.com/developers/documentation/swift#tutorial