objective c - Not getting file size in dropbox for iOS -


i working on dropbox integration ios , i've done suppose do, getting files , can download too, cant file size of before download or in meta information. here how doing in view did load.

if ([[dbsession sharedsession] islinked]) {     [self showprogresshud];     [[self restclient] loadmetadata:@"/"]; }   - (void)restclient:(dbrestclient *)client loadedmetadata:(dbmetadata *)metadata { if (metadata.isdirectory) {     [self hideprogesshud];     filelist=[[nsmutablearray alloc]initwithcapacity:0];      (dbmetadata *file in metadata.contents)     {         [filelist addobject:file]; } } 

getting nil response on file.totalbytes kindly guide me how file size before downloading file size in dropbox than,s

dbmetadata contains information files contains totalbytes , humanreadablesize

for (dbmetadata *file in metadata.contents) {     nslog(@“file size: %@”,file.humanreadablesize);     // file.humanreadablesize contains size in nsstring     [filelist addobject:file]; } 

Comments

Popular posts from this blog

magento2 - Magento 2 admin grid add filter to collection -

Android volley - avoid multiple requests of the same kind to the server? -

Combining PHP Registration and Login into one class with multiple functions in one PHP file -