DeleteObject and Key naming convention

Aug 14, 2009 at 3:04 AM

I'm having a tough time getting the Threesharp (with wrapper) to deleteobject on S3 to work. I appreciate any help...

I upload all the files using the same process (via flajaxian using private acl). I can view and/or download most of these items without issue. However, some can't be viewed or deleted.. If it fails, I get the dreaded BSOD in the form of a "SignatureDoesNotMatch" error.

I have tried to URL encode all file names, make them lower case, and change them to a number only (i.e. 1234.pdf). None of that worked.

Is there a naming convention for key names that I should use? Thank you for your help!



Aug 28, 2009 at 5:56 PM

We had the same problem. If you url encode your key name first (i.e., System.Web.HttpUtility.UrlEncode(keyName)) before sending it into DeleteObject() it seems to fix the issue. I would think the wrapper should handle this for us, but apparently it doesn't.