$sendData = [
"id" => $deal_id,
"fields" => [
"UF_CRM_1552985294" => [
[
"fileData" => [
$_FILES["file"]["name"],
base64_encode(file_get_contents($_FILES["file"]["tmp_name"]))
]
],
[
"fileData" => [
$_FILES["file_2"]["name"],
base64_encode(file_get_contents($_FILES["file_2"]["tmp_name"]))
]
],
]
]
];