Update / Replace mode question #127
andreaPress
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
thanks for your work.
I liked the implementation of the dropbox API.
I needed to replace some files after downloading them and I noticed that the method
function uploadExtended(string $path, mixed $contents, string $mode = 'add', bool $autorename = false): array
only accepts strings for the
$mode
parameter.To update a file you need to pass an array like this:
['.tag' => 'update', 'update' => $rev]
where$rev
is the revision.Would it be possible to update the method to also support file updating?
This way it works but I think
shouldUploadChunked
should also be updatedThanks,
Andrea
Beta Was this translation helpful? Give feedback.
All reactions