1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-29 22:27:42 +02:00
Files
OpenIntegrations/docs/en/examples/Bitrix24/UploadFileToFolder.txt

17 lines
625 B
Plaintext
Raw Normal View History

 Filename2 = "Picture2.jpg";
Name = "Picture1.jpg";
2025-06-27 11:47:43 +03:00
Image2 = FunctionParameters["Picture"]; // Local path, URL or Binary Data
Image = FunctionParameters["Picture2"]; // Local path, URL or Binary Data
2025-06-27 11:47:43 +03:00
DestinationID = FunctionParameters["Bitrix24_FolderID"];
2025-06-27 11:47:43 +03:00
URL = FunctionParameters["Bitrix24_URL"];
Result = OPI_Bitrix24.UploadFileToFolder(URL, Filename2, Image2, DestinationID);
2025-06-27 11:47:43 +03:00
URL = FunctionParameters["Bitrix24_Domain"];
Token = FunctionParameters["Bitrix24_Token"];
Result = OPI_Bitrix24.UploadFileToFolder(URL, Name, Image, DestinationID, Token);