AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 4.5
Parameters for uploading to Amazon S3 a file using HTTP POS

Inheritance Hierarchy


Namespace: Amazon.S3.Util
Assembly: AWSSDK.dll
Version: (assembly version)


public class S3PostUploadRequest : Object

The S3PostUploadRequest type exposes the following members


Public Method S3PostUploadRequest()


Public Property Bucket System.String S3 Bucket to upload the object to
Public Property CannedACL Amazon.S3.S3CannedACL Specifies an Amazon S3 access control list
Public Property ContentType System.String Content type for the uploaded data
Public Property InputStream System.IO.Stream Stream to read the upload data for
Public Property Key System.String The name of the uploaded key.
Public Property Metadata System.Collections.Generic.IDictionary<System.String, System.String> Metadata to set on the uploaded object
Public Property Path System.String File path to read the upload data from
Public Property Region Amazon.RegionEndpoint The AWS region where the bucket is located.
Public Property SignedPolicy Amazon.S3.Util.S3PostUploadSignedPolicy Signed policy from bucket owner.
Public Property StorageClass Amazon.S3.S3StorageClass Storage class to use for storing the object
Public Property SuccessActionRedirect System.String Where to redirect browsers on a successful upload
Public Property SuccessActionStatus System.Net.HttpStatusCode The status code returned to the client upon successful upload if success_action_redirect is not specified


If a S3PostUploadSignedPolicy is assigned, then values set (other than InputStream or Path) on this object must adhere to the policy. This includes metadata. If metadata is specified in the policy, then it must be included in the request. Adding metadata not in the policy will cause the POST to fail.

For more information,

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5