lundi 5 janvier 2015

Uploading to S3 but nothing appears in the Web Console

I am trying to upload CSV files to AWS S3. My code has no syntax errors and doesn't cause any exceptions but the CSV files do not appear in web console. I also want to organise the CSV files by date. Here's the code:



string[] files = Directory.GetFiles(folder, "*.csv*", SearchOption.TopDirectoryOnly);

foreach (string file in files)
{
PutObjectRequest request = new PutObjectRequest();
request.BucketName = "WorkFolder";
request.Key = "CSV/" + date + "/";
request.FilePath = file;
s3client.PutObject(request);
response = s3client.PutObject(request);
}




Aucun commentaire:

Enregistrer un commentaire