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?

3

1 Answer 1

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.