2024-08-13 14:04:54 +00:00
|
|
|
Filename2 = "Picture2.jpg";
|
|
|
|
Name = "Picture1.jpg";
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data
|
|
|
|
Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data
|
2024-08-13 14:04:54 +00:00
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
DestinationID = FunctionParameters["Bitrix24_FolderID"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_URL"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UploadFileToFolder(URL, Filename2, Image2, DestinationID);
|
|
|
|
|
2024-09-17 15:57:44 +03:00
|
|
|
URL = FunctionParameters["Bitrix24_Domain"];
|
|
|
|
Token = FunctionParameters["Bitrix24_Token"];
|
2024-08-13 14:04:54 +00:00
|
|
|
|
|
|
|
Result = OPI_Bitrix24.UploadFileToFolder(URL, Name, Image, DestinationID, Token);
|