Advertisement
Guest User

Untitled

a guest
Jan 17th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. AmazonS3Client s3Client = new AmazonS3Client(RegionEndpoint.EUCentral1);
  2. var folderKey = savePath + title;
  3. PutObjectRequest req = new PutObjectRequest();
  4. req.BucketName = bucket;
  5. req.Key = folderKey;
  6. req.FilePath = openPath;
  7.  
  8. PutObjectResponse res = s3Client.PutObject(req);
  9.  
  10. req.MyAttribute = Guid.NewGuid();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement