How to edit the file in swiftyDropbox?

277 Views Asked by At

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?

1

There are 1 best solutions below

0
On

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)")
}