You've already forked OpenIntegrations
mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2026-06-12 00:34:16 +02:00
20 lines
791 B
Plaintext
Vendored
20 lines
791 B
Plaintext
Vendored
URL = "s3.openintegrations.dev";
|
|
AccessKey = "bayselo...";
|
|
SecretKey = "12we34...";
|
|
Region = "BTC";
|
|
|
|
BasicData = OPI_S3.GetBasicDataStructure(URL, AccessKey, SecretKey, Region);
|
|
|
|
Directory = True; // Formation URL in path-style
|
|
Bucket = "w567hjy1";
|
|
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); |