https://api.hubapi.com/filemanager/api/v3/files/upload 415 error

hi,

i send this

curl_setopt_array($curl, array(

CURLOPT_URL => ‘https://api.hubapi.com/files/v3/files/import-from-url/async’,

CURLOPT_RETURNTRANSFER => true,

CURLOPT_ENCODING => ‘’,

CURLOPT_MAXREDIRS => 10,

CURLOPT_TIMEOUT => 0,

CURLOPT_FOLLOWLOCATION => true,

CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,

CURLOPT_CUSTOMREQUEST => ‘POST’,

CURLOPT_POSTFIELDS =>'{

“access”: “PUBLIC_INDEXABLE”,

“name”: “test101202.pdf”,

“url”: “https://myspace.com/101202/administratif/test101202.pdf”,

“folderId”: “63326534593”,

“duplicateValidationStrategy”: “NONE”,

“duplicateValidationScope”: “EXACT_FOLDER”,

“overwrite”: true

}',

CURLOPT_HTTPHEADER => array(

'Authorization: Bearer pat-\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*',

'Content-Type: application/json'

),

));

the return status is

Error 415 Unsupported Media Type

i tried with a .txt instead a .pdf it’s exactly the same

thanks for your help

Hey, @cpradalier One quick question — does https://myspace.com/101202/administratif/test101202.pdf work for you? I got a 404.
I wonder if we could test with a different PDF or with a different URL.

Best,

Jaycee

the adress is https://db-apart.com/101202/administratif/test101202.pdf