1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/S3/CopyObject.txt
Vitaly the Alpaca (bot) 95a1bf1e97 Main build (Jenkins)
2025-10-28 09:48:51 +03:00

15 lines
558 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
SourcePath = "picture.jpg";
DestinationBucket = "newbucket2";
DestinationPath = "new_picture.jpg";
SourceBucket = "opi-dirbucket4";
Result = OPI_S3.CopyObject(SourcePath, DestinationBucket, DestinationPath, SourceBucket, BasicData, , Directory);