diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-06-27 15:23:26 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-06-27 15:23:49 -0400 |
commit | 9b605969f1ef9826469c68ec35df768063f904ba (patch) | |
tree | e92ce9a0496f6ed0a59db7b5df3e4d79a4117d84 /3rdparty | |
parent | 77c66e8cc4ee69b8d52a25c7cf436f1c0347113a (diff) | |
download | nextcloud-server-9b605969f1ef9826469c68ec35df768063f904ba.tar.gz nextcloud-server-9b605969f1ef9826469c68ec35df768063f904ba.zip |
Fixes in Dropbox API, try to catch Dropbox exceptions, implement rename and copy in Dropbox storage backend
Diffstat (limited to '3rdparty')
-rw-r--r-- | 3rdparty/Dropbox/API.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/3rdparty/Dropbox/API.php b/3rdparty/Dropbox/API.php index cff6c35c7fb..8cdce678e1c 100644 --- a/3rdparty/Dropbox/API.php +++ b/3rdparty/Dropbox/API.php @@ -139,7 +139,7 @@ class Dropbox_API { public function copy($from, $to, $root = null) {
if (is_null($root)) $root = $this->root;
- $response = $this->oauth->fetch($this->api_url . 'fileops/copy', array('from_path' => $from, 'to_path' => $to, 'root' => $root));
+ $response = $this->oauth->fetch($this->api_url . 'fileops/copy', array('from_path' => $from, 'to_path' => $to, 'root' => $root), 'POST');
return json_decode($response['body'],true);
@@ -178,7 +178,7 @@ class Dropbox_API { public function delete($path, $root = null) {
if (is_null($root)) $root = $this->root;
- $response = $this->oauth->fetch($this->api_url . 'fileops/delete', array('path' => $path, 'root' => $root));
+ $response = $this->oauth->fetch($this->api_url . 'fileops/delete', array('path' => $path, 'root' => $root), 'POST');
return json_decode($response['body']);
}
@@ -196,7 +196,7 @@ class Dropbox_API { public function move($from, $to, $root = null) {
if (is_null($root)) $root = $this->root;
- $response = $this->oauth->fetch($this->api_url . 'fileops/move', array('from_path' => rawurldecode($from), 'to_path' => rawurldecode($to), 'root' => $root));
+ $response = $this->oauth->fetch($this->api_url . 'fileops/move', array('from_path' => rawurldecode($from), 'to_path' => rawurldecode($to), 'root' => $root), 'POST');
return json_decode($response['body'],true);
|