POST /filemanager/api/v3/files/upload not working

I am not having any luck hitting the api or generating any logs in the private app, while other functions do.
This is the code that calls the function

<?php

// This example uploads a local file named ‘example_file.txt’
// to the /docs folder, without checking for duplicate files

$endpoint = “https://api.hubapi.com/filemanager/api/v3/files/upload”;

$upload_file = new CURLFile(‘/home/cpaneluser/public_html/subdomain/wp-content/uploads/documents/text.pdf’,‘application/octet-stream’);
$file_options = array(
“access” => “PUBLIC_INDEXABLE”,
“overwrite” => false,
“duplicateValidationStrategy” => “NONE”,
“duplicateValidationScope” => “ENTIRE_PORTAL”
);

$properties = array(
“file” => $upload_file,
“options” => json_encode($file_options),
“folderPath” => “/docs”
);

return hubspotApiSendFile($endpoint, $properties)
?>
this is the function it calls
function hubspotApiSendFile($endpoint, $properties){
print “running”;
// HubSpot Bearer Token
$hubspot_access_token = ‘pat-na1-00ece814-xxxx-xxxx-xxxx-8b9345de889c’;
$ch = curl_init();
@curl_setopt($ch, CURLOPT_URL, $endpoint);
@curl_setopt($ch, CURLOPT_CUSTOMREQUEST, “POST”);
@curl_setopt($ch, CURLOPT_POSTFIELDS, $properties);
@curl_setopt($ch, CURLOPT_HTTPHEADER, array(
‘Content-Type: application/json’,
'Authorization: Bearer ’ . $hubspot_access_token // Include the authorization header
));
@curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
// Execute cURL session
$response = @curl_exec($ch);
$status_code = @curl_getinfo($ch, CURLINFO_HTTP_CODE);
echo $status_code . " " . $response;
// Check for cURL errors
if (@curl_errno($ch)) {
error_log('cURL error: ’ . @curl_error($ch));
} else {
// If no cURL errors, process the response
$response = json_decode($response, true);
}
// Close cURL session
@curl_close($ch);
}
I know there is something silly I am not doing, I just cant work out what it is? Thanks in advance.

Here are the current slopes