0

In my project, I uploaded all my text files to the Dropbox. Here, I need to directly edit the uploaded file in Dropbox using swift. Is it possible to edit files in Dropbox? (OR) Is it possible to overwrite the same fileName in Dropbox?

starball
  • 20,030
  • 7
  • 43
  • 238
  • [Cross-linking for reference: https://www.dropboxforum.com/t5/API-support/How-to-edit-the-file-in-the-Dropbox-using-swift/m-p/222294 (fixed link) ] – Greg May 23 '17 at 05:07
  • @Greg How should I fetch the profile picture of the user account to my program. – Sathish Kumar Gurunathan May 23 '17 at 07:45
  • [Cross-linking for reference: https://www.dropboxforum.com/t5/API-support/How-to-edit-the-file-in-the-Dropbox-using-swift/m-p/222498 ] – Greg May 23 '17 at 18:27

1 Answers1

0

Solution moved from @SathishKumarGurunathan's question post.

I found the answer and I will share here.

 _ = client?.files.upload(path: path, mode: .overwrite, autorename: false, clientModified: nil, mute: false, input: Description).response { response, error in

    if let response = response {
        
        print("The upload response is \(response)")
        
    } else if let error = error {
        
        print("The upload error is \(error)")
    }
    }
    .progress { progressData in
        
        print("The progress Data is \(progressData)")
}
starball
  • 20,030
  • 7
  • 43
  • 238