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

Lists in Python -

android - can not access to progress bar in an other activity -

java - Vaadin 7 Pass Data Between Views -