How do I make .upload overwrite the file if it's already in dropbox?
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)