uploading files to BOX using v2 API
Not ideal but got this working using an shell_exec instead:
$cmd = "curl https://upload.box.com/api/2.0/files/content \-H \"Authorization: Bearer $this->access_token\" -X POST \-F attributes='{\"name\":\"$filename\",\"parent\": {\"id\":\"$parent_id\"}}' \-F file=@\"$filename\"";shell_exec($cmd);