mirror of
https://gh.llkk.cc/https://github.com/mainwp/mainwp-remote-backups-extension.git
synced 2025-10-03 15:41:31 +08:00
copy.com space issue
This commit is contained in:
parent
bed4e1885b
commit
32b6ff971d
1 changed files with 3 additions and 3 deletions
|
@ -83,7 +83,7 @@ class CopyAPI
|
|||
|
||||
public function uploadFile($pFile, $pRemoteDir, $pRemoteFilename)
|
||||
{
|
||||
$url = self::$FILEAPI . $pRemoteDir;
|
||||
$url = self::$FILEAPI . rawurlencode($pRemoteDir);
|
||||
|
||||
$oauth_req = SN_OAuthRequest::from_consumer_and_token($this->consumer, $this->token, 'POST', $url);
|
||||
$oauth_req->sign_request($this->signature_method, $this->consumer, $this->token);
|
||||
|
@ -126,7 +126,7 @@ class CopyAPI
|
|||
|
||||
public function getMeta($pFile)
|
||||
{
|
||||
$url = self::$METAPI . trim($pFile, '/');
|
||||
$url = self::$METAPI . rawurlencode(trim($pFile, '/'));
|
||||
|
||||
$oauth_req = SN_OAuthRequest::from_consumer_and_token($this->consumer, $this->token, 'GET', $url);
|
||||
$oauth_req->sign_request($this->signature_method, $this->consumer, $this->token);
|
||||
|
@ -154,7 +154,7 @@ class CopyAPI
|
|||
|
||||
public function delete($pFile)
|
||||
{
|
||||
$url = self::$FILEAPI . trim($pFile, '/');
|
||||
$url = self::$FILEAPI . rawurlencode(trim($pFile, '/'));
|
||||
|
||||
$oauth_req = SN_OAuthRequest::from_consumer_and_token($this->consumer, $this->token, 'DELETE', $url);
|
||||
$oauth_req->sign_request($this->signature_method, $this->consumer, $this->token);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue