Seafile Upload function using PHP cUrl in Codeigniter

I have created a Seafile Wrapper in PHP using the CodeIgniter framework.The seafile web API allows me to upload files to using cUrl. The following is a function I created to upload an existing file the post method defined in the api manual:

I would like to ask that you have a look at the code and help to structure this correctly. The cURL POST function in the wrapper works perfectly with other calls, but the below does not return an error nor does it work.

public function uploadFile($upload_link, $upload_file, $upload_filename){
    return $this->decode($this->post($upload_link,
            'file'  => new Curlfile('test.txt'),
            'filename'  => "test.txt",
            'parent_dir' => "/"

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.