martes, 30 de octubre de 2012

Browser uploads to S3, the XML response

In many documents, blogs and pages it states that when you upload files to S3 from your browser and you specify to use '201' as success code Amazon returns an XML document...

I have been unable to find any specs of such documen, but luckily I had a test form handy to try it for myself, and here are the results:

<?xml version="1.0" encoding="UTF-8"?>
<PostResponse>
<Location>http://XXX.s3.amazonaws.com/path/to/the/file</Location>
<Bucket>XXX</Bucket>
<Key>path/to/the/file</Key>
<ETag>"32663f4658128e3f313f372d349b985d"</ETag>
</PostResponse>