diff --git a/index.php b/index.php index 7e407cb..40c5684 100644 --- a/index.php +++ b/index.php @@ -1,7 +1,7 @@ board = $boardId; $boardStack->stack = $stackId; $boardStack->newTitle = $params; @@ -118,7 +115,7 @@ class DeckClass { for ($i = 0; $i < count($attachments); $i++) { $file = $fullPath . $attachments[$i]; $data = array( - 'file' => new CURLFile($file) + 'file' => new \CURLFile($file) ); $this->apiCall("POST", NC_SERVER . "/index.php/apps/deck/api/v1.0/boards/{$card->board}/stacks/{$card->stack}/cards/{$card->id}/attachments?type=file", $data, true); unlink($file);