Returns a Dropbox\WriteMode
for updating an existing file. This is useful for
when you have downloaded a file, made modifications, and want to save your
modifications back to Dropbox. You need to specify the revision of the copy of
the file you downloaded (it's the "rev" parameter of the file's metadata
object).
Returns a Dropbox\WriteMode
for updating an existing file. This is useful for
when you have downloaded a file, made modifications, and want to save your
modifications back to Dropbox. You need to specify the revision of the copy of
the file you downloaded (it's the "rev" parameter of the file's metadata
object).
If, when you attempt to save, the revision of the file currently on Dropbox
matches $revToReplace, the file on Dropbox will be overwritten with the new
contents you provide.
If the revision of the file currently on Dropbox doesn't match $revToReplace,
Dropbox will create a new file and save your contents to that file. For example,
if the original file path is "/Notes/Groceries.txt", the new file's path might
be "/Notes/Groceries (conflicted copy).txt".
You can determine whether your file was renamed by checking the "path" field
of the metadata object returned by the API call.
Parameters
- $revToReplace
string
$revToReplace
Returns