1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-27 22:18:36 +02:00
Files
OpenIntegrations/docs/en/examples/S3/PutObject.txt
Vitaly the Alpaca (bot) 3d4bbb5f8b Main build (Jenkins)
2025-09-01 14:51:24 +03:00

21 lines
818 B
Plaintext
Vendored

URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
Region = "BTC";
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
Directory = True; // Formation URL in path-style
Bucket = "opi-dirbucket3";
Name = "picture.jpg";
Entity = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData, , Directory);
Name = "fileChunked.mp3";
Entity = "https://hut.openintegrations.dev/test_data/song.mp3"; // URL, Path or Binary Data
BasicData.Insert("ChunkSize", 5242880); // Size parts for upload in multiple of requests
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData, , Directory);