diff options
author | emkael <emkael@tlen.pl> | 2018-10-13 18:01:37 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2019-10-27 14:53:06 +0100 |
commit | 4414cc3a6f2b9fe9c318a9c7438ee139ef830099 (patch) | |
tree | 4a210f24a68fef7fdca4b34816cba6387b401ecc /kurier/S3.cs | |
parent | ae9fddd795e67f3b6129053020fdb15856601285 (diff) |
Renaming project
Diffstat (limited to 'kurier/S3.cs')
-rw-r--r-- | kurier/S3.cs | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/kurier/S3.cs b/kurier/S3.cs deleted file mode 100644 index 55993d1..0000000 --- a/kurier/S3.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; -using Amazon.S3; -using Amazon.S3.Model; -using System.IO; -using System.Windows.Forms; -using Amazon; - -namespace kurier -{ - class S3 - { - private AmazonS3Client _client; - - public S3() - { - this._client = new AmazonS3Client(Properties.S3Settings.Default.AWS_ACCESS_KEY, Properties.S3Settings.Default.AWS_SECRET_KEY, RegionEndpoint.EUCentral1); - } - - public void send(string bucket, string filePath, string remotePath) - { - PutObjectRequest request = new PutObjectRequest { - BucketName = bucket, - Key = remotePath, - ContentBody = File.ReadAllText(filePath) }; - this._client.PutObject(request); - } - } -} |