summaryrefslogtreecommitdiffstats
path: root/3rdparty/Dropbox/API.php
diff options
context:
space:
mode:
Diffstat (limited to '3rdparty/Dropbox/API.php')
-rw-r--r--3rdparty/Dropbox/API.php6
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);