The POST Object operation adds an object to a specified bucket using HTML forms.
For more details about using the POST Object operation, see the following:
For request syntax examples, see Amazon's official S3 POST Object API documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html).
This implementation of the POST Object operation does not support the use of request parameters.
This implementation of the POST Object operation does not support the use of request headers.
The request is made through an HTTP form.
The POST Object operation supports the use of following form fields in a request.
|
For a description of these supported form fields, see Amazon's official S3 POST Object API documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html).
In addition to the response headers common to all responses, this implementation of the POST Object operation can include the following response headers:
success_action_redirect
x-amz-version-id
For a more information about these response headers, see Amazon's official S3 POST Object API documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html). For a description of common response headers, see Figure 9, Table 9, Supported Response Headers .
For a list of supported elements in the XML response for the POST Object operation, see Amazon's official S3 POST Object API documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPOST.html).
200 or 201 or 204
The POST Object API does not return special errors. For general information about S3 errors and a list of error codes, see S3 Client Error Handling Reference.
POST / HTTP/1.1 User-Agent: browser_data Accept: file_types Accept-Language: Regions Accept-Encoding: encoding Accept-Charset: character_set Keep-Alive: 300 Connection: keep-alive Content-Type: multipart/form-data; boundary=9431149156168 Content-Length: length --9431149156168 Content-Disposition: form-data; name="key" acl --9431149156168 Content-Disposition: form-data; name="tagging" <Tagging><TagSet><Tag><Key>Tag Name</Key><Value>Tag Value</Value></Tag></TagSet></Tagging> --9431149156168 Content-Disposition: form-data; name="success_action_redirect" success_redirect --9431149156168 Content-Disposition: form-data; name="Content-Type" content_type --9431149156168 Content-Disposition: form-data; name="x-amz-meta-uuid" uuid --9431149156168 Content-Disposition: form-data; name="x-amz-meta-tag" metadata --9431149156168 Content-Disposition: form-data; name="AWSAccessKeyId" access-key-id --9431149156168 Content-Disposition: form-data; name="Policy" encoded_policy --9431149156168 Content-Disposition: form-data; name="Signature" signature= --9431149156168 Content-Disposition: form-data; name="file"; filename="MyFilename.jpg" Content-Type: image/jpeg file_content --9431149156168 Content-Disposition: form-data; name="submit" Upload to S3 --9431149156168-- response: HTTP/1.1 100 Continue HTTP/1.1 200 OK x-amz-request-id: tx0A49CE4060975EAC x-amz-version-id: null Date: Wed, 01 Mar 2018 12:00:00 GMT ETag: "828ef3fdfa96f00ad9f27c383fc9ac7f" Content-Length: 0 Connection: close Server: Apache