views:

92

answers:

1

Dear Hepler,

I am using ASIS3request to upload a photo from iphone to Amazon S3 service.

Basically I followed the instruction on documentation.

However I gets the following error.

"The XML you provided was not well-formed or did not validate against our published schema".

For your reference

I attached a code below.

   ASIS3Request *request = [ASIS3Request PUTRequestForFile:uniquePath withBucket:@"catcontest" path:@""];
   [request setSecretAccessKey:@"..."];
   [request setAccessKey:@"....."];

   [request start];
    if ([request error]) {
            NSLog(@"%@",[[request error] localizedDescription]);

    }
A: 

I don't know if your code sample is incomplete or censored, but the section path:@"" looks like it should have something in between the quotes, possibly a path to an xml file?

A non-validating XML error would be consistent with a missing xml file.

(this is just a guess, I know nothing about ASIS3request!)

Colin Pickard