ios - how to get full path of file in dropbox in swift programatically -


i want display image dropbox item in imageview, want complete path image item can image nsdata of theat url.

following code using:

 client.files.getmetadata(path: "/hello.txt").response { response, error in                     print("*** file metadata ***")                     if let metadata = response {                         if let file = metadata as? files.filemetadata {                             print("this file path: \(file.pathlower)")                             print("file size: \(file.size)")                         } else if let folder = metadata as? files.foldermetadata {                             print("this folder path: \(folder.pathlower)")                         }                     } else {                         print(error!)                     } 

here file.pathlower returns relative path , not full path.

if want display image dropbox, you'll first need download it. search "download file" in swift tutorial.


Comments

Popular posts from this blog

Ansible - ERROR! the field 'hosts' is required but was not set -

customize file_field button ruby on rails -

SoapUI on windows 10 - high DPI/4K scaling issue -