2025-06-29 14:35:33 +03:00
|
|
|
URL = "storage-155.s3hoster.by";
|
|
|
|
|
AccessKey = "BRN5RKJE67...";
|
|
|
|
|
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
|
2024-11-15 22:13:43 +03:00
|
|
|
Region = "BTC";
|
|
|
|
|
|
|
|
|
|
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
|
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
Directory = True; // Formation URL in path-style
|
|
|
|
|
Bucket = "opi-dirbucket3";
|
2024-11-15 22:13:43 +03:00
|
|
|
Name = "picture.jpg";
|
2025-06-29 14:35:33 +03:00
|
|
|
Entity = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
|
2024-11-15 22:13:43 +03:00
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData, , Directory);
|
2024-11-21 11:30:08 +03:00
|
|
|
|
|
|
|
|
Name = "fileChunked.mp3";
|
2025-06-29 14:35:33 +03:00
|
|
|
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary Data
|
2024-11-21 11:30:08 +03:00
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
BasicData.Insert("ChunkSize", 5242880); // Size parts for upload in multiple of requests
|
2024-11-21 11:30:08 +03:00
|
|
|
|
2025-09-01 14:51:24 +03:00
|
|
|
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData, , Directory);
|