1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-12-21 23:57:40 +02:00
Files
OpenIntegrations/docs/en/examples/S3/PutObject.txt

21 lines
719 B
Plaintext
Raw Normal View History

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);
Name = "picture.jpg";
Bucket = "opi-gpbucket3";
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
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData);
2024-11-21 11:30:08 +03:00
Name = "fileChunked.mp3";
Bucket = "opi-gpbucket3";
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
BasicData.Insert("ChunkSize", 5242880);
Result = OPI_S3.PutObject(Name, Bucket, Entity, BasicData);