PutObject - AWS Elemental MediaStore


Uploads an object to the specified path. Object sizes are limited to 25 MB for standard upload availability and 10 MB for streaming upload availability. If the object doesn't fully upload within 30 seconds, MediaStore cancels the request. This applies to all objects, regardless of whether they are uploaded using standard or streaming upload availability.

Request Syntax

PUT /Path+ HTTP/1.1 Content-Type: ContentType Cache-Control: CacheControl x-amz-storage-class: StorageClass x-amz-upload-availability: UploadAvailability Body

URI Request Parameters

The request uses the following URI parameters.


An optional CacheControl header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

Headers with a custom user-defined value are also accepted.


The content type of the object.

Pattern: ^[\w\-\/\.\+]{1,255}$


The path (including the file name) where the object is stored in the container. Format: <folder name>/<folder name>/<file name>

For example, to upload the file mlaw.avi to the folder path premium\canada in the container movies, enter the path premium/canada/mlaw.avi.

Do not include the container name in this path.

If the path includes any folders that don't exist yet, the service creates them. For example, suppose you have an existing premium/usa subfolder. If you specify premium/canada, the service creates a canada subfolder in the premium folder. You then have two subfolders, usa and canada, in the premium folder.

There is no correlation between the path to the source and the path (folders) in the container in AWS Elemental MediaStore.

For more information about folders and how they exist in a container, see the AWS Elemental MediaStore User Guide.

The file name is the name that is assigned to the file that you upload. The file can have the same name inside and outside of AWS Elemental MediaStore, or it can have the same name. The file name can include or omit an extension.

Length Constraints: Minimum length of 1. Maximum length of 900.

Pattern: (?:[A-Za-z0-9_=:\.\-\~]+/){0,10}[A-Za-z0-9_=:\.\-\~]+

Required: Yes


Indicates the storage class of a Put request. Defaults to high-performance temporal storage class, and objects are persisted into durable storage shortly after being received.

Length Constraints: Minimum length of 1. Maximum length of 16.



Indicates the availability of an object while it is still uploading. If the value is set to streaming, the object is available for downloading after some initial buffering but before the object is uploaded completely. If the value is set to standard, the object is available for downloading only when it is uploaded completely. The default value for this header is standard.

To use this header, you must also set the HTTP Transfer-Encoding header to chunked.

Length Constraints: Minimum length of 1. Maximum length of 16.


Request Body

The request accepts the following binary data.


The bytes to be stored.

Required: Yes

Response Syntax

HTTP/1.1 200 Content-type: application/json { "ContentSHA256": "string", "ETag": "string", "StorageClass": "string" }

Response Elements

If the action is successful, the service sends back an HTTP 200 response.

The following data is returned in JSON format by the service.


The SHA256 digest of the object that is persisted.

Type: String

Length Constraints: Fixed length of 64.

Pattern: [0-9A-Fa-f]{64}


Unique identifier of the object in the container.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 64.

Pattern: [0-9A-Fa-f]+


The storage class where the object was persisted. The class should be “Temporal”.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 16.



For information about the errors that are common to all actions, see Common Errors.


The specified container was not found for the specified account.

HTTP Status Code: 404


The service is temporarily unavailable.

HTTP Status Code: 500


Regular Upload Request

The following request puts a file to the container that is identified by the endpoint that is specified in the Host: header. It posts it to the folder premium/canada in that container and names the file mlaw.avi.

POST premium/canada/mlaw.avi Host: aaabbbcccdddee.files.mediastore-us-west-2.com x-amz-Date: 20170323T120000Z Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20141123/us-west-2/mediastore/aws4_request,SignedHeaders=host;x-amz-date;x-amz-mediastore-version,Signature=9257c16da6b25a715ce900a5b45b03da0447acf430195dcb540091b12966f2a2 Content-Length: 0 x-amz-mediastore-version: 2016-07-11

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: