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

15 lines
558 B
Plaintext
Raw Normal View History

2025-10-21 11:36:43 +03:00
 URL = "storage-155.s3hoster.by";
AccessKey = "BRN5RKJE67...";
SecretKey = "NNhv+i9PrytpT8Tu0C1N...";
2024-11-18 10:27:37 +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
2024-11-18 10:27:37 +03:00
SourcePath = "picture.jpg";
2025-09-01 14:51:24 +03:00
DestinationBucket = "newbucket2";
2024-11-18 10:27:37 +03:00
DestinationPath = "new_picture.jpg";
2025-10-28 09:48:51 +03:00
SourceBucket = "opi-dirbucket4";
2025-09-01 14:51:24 +03:00
Result = OPI_S3.CopyObject(SourcePath, DestinationBucket, DestinationPath, SourceBucket, BasicData, , Directory);