Нужно загрузить файл в Битрикс и привязать к комментарию к задаче. Выполняется через /disk.storage.uploadfile, тело запроса:
{
"id": {{source.int7348.step6.result.0.ID}},
"fileContent": ["file", "{{step7|get_http_content()|base64_encode()}}"],
"data": {"NAME": "{{step6.result.NAME|default()}}"},
"generateUniqueName": true
}
При загрузке файла в Битрикс в журнале появляется ошибка "Возникла ошибка [{"error":"ERROR_ARGUMENT","error_description":"Invalid value of parameter { Parameter #0 [ \u003Crequired\u003E $id ] }."}]. Код ответа: [400]"
Детали запроса из журнала:
{
"id": 291,
"fileContent": [
"file",
"truncated..."
],
"data": {
"NAME": "mobile_file_2022-06-09_15-57-18.png"
},
"generateUniqueName": true
}
В чем проблема?
{
"id": {{source.int7348.step6.result.0.ID}},
"fileContent": ["file", "{{step7|get_http_content()|base64_encode()}}"],
"data": {"NAME": "{{step6.result.NAME|default()}}"},
"generateUniqueName": true
}
При загрузке файла в Битрикс в журнале появляется ошибка "Возникла ошибка [{"error":"ERROR_ARGUMENT","error_description":"Invalid value of parameter { Parameter #0 [ \u003Crequired\u003E $id ] }."}]. Код ответа: [400]"
Детали запроса из журнала:
{
"id": 291,
"fileContent": [
"file",
"truncated..."
],
"data": {
"NAME": "mobile_file_2022-06-09_15-57-18.png"
},
"generateUniqueName": true
}
В чем проблема?




