File is saved with 0 bytes

Mar 19, 2009 at 2:07 AM
Hey everyone,

I've had an odd issue come up recently.  I've noticed that my files are getting saved to S3 with a content length of 0.  The file name any everything is fine, but the file data is non-existent.  Here's the code I'm using:

string bucketName = ConfigurationSettings.AppSettings["S3DefaultBucketName"];
                string filename = unProcessedManuals.FilePhysicalPath;

                ThreeSharpWrapper wrapper = new ThreeSharpWrapper(ConfigurationSettings.AppSettings["S3AccessKey"], ConfigurationSettings.AppSettings["S3SecretAccessKey"]);

                string filekey = unProcessedManuals.FileGuid.ToString() + "-" + unProcessedManuals.FileName + unProcessedManuals.FileExt;

                wrapper.AddFileObject(bucketName, filekey, unProcessedManuals.FilePhysicalPath);

Has anyone run into this or have any suggestions?

Thanks in advance!

May 20, 2009 at 7:39 PM

I'm having the same issue in the project i'm working on.  Did you find a solution to this problem?

May 20, 2009 at 9:36 PM

No, I didn't.  It was a freak thing--it just started working again.  The total downtime was around 3 days.  I haven't checked the code lately (as it was for a freelance client), but I haven't heard of any more issues.