'how can I overwrite a file using DropBox API in iOS Swift?
When my swift tries to upload an updated file, I get "API route" error if file already in dropbox.
I tried this:
let request = client!.files.upload( path: dropbox_upload_pathname, input: fileData, WriteMode: overwrite )
..but got error "Cannot find 'overwrite' in scope."
I tried these but get build errors...
client!.files.upload( path: dropbox_upload_pathname, WriteMode: overwrite, input: fileData)
client!.files.upload( path: dropbox_upload_pathname, input: fileData, WriteMode: overwrite)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
