views:

170

answers:

1

Hi,

I'm trying to send a file to amazon s3 using the s3-bash scripts.

Using this command:

./s3-put -T ./test2 -k <mykey> -s ./<mysecretkeyfile> /mybucketname

leads to:

<?xml version="1.0" encoding="UTF-8"?>
<Error><Code>MalformedXML</Code><Message>The XML you provided was not well-formed or did not validate against our published schema</Message><RequestId>xxx</RequestId><HostId>xxx</HostId></Error>

Any idea? I just want to send a file via bash.

A: 

I solved it: the bucket name needs to have the filename attached, like this:

/mybucketname/myfile

So the complete command could look like:

./s3-put -T ./test2 -k <mykey> -s ./<mysecretkeyfile> /mybucketname/myfile
schneck