You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.

Forum Discussion

tannchri's avatar
tannchri
Explorer | Level 4
8 years ago

iOS API v2: possible to overwrite files at upload?

I'm using the objective-c SDK for Dropbox API v2 and trying to do something which should be remarkably simple: upload text files to the user's Dropbox folder and if any changes are made to the file o...
  • Greg-DB's avatar
    8 years ago

    You can certainly overwrite files using the API. For example, use -uploadData:mode:autorename:clientModified:mute:inputData: and pass in the desired 'mode' parameter, which should be a DBFILESWriteMode. You can use the 'overwrite' mode, but using 'update' with a rev value is safer, as it prevents accidentally overwriting new data the app wasn't aware of.