A standard MIME type describing the format of the object data.
Declaration Syntax
C# |
[ObsoleteAttribute("The With methods are obsolete and will be removed in version 2 of the AWS SDK for .NET. See http://aws.amazon.com/sdkfornet/#version2 for more information.")] public GetPreSignedUrlRequest WithContentType( string contentType )
Parameters
- contentType (String)
- The content type required
Return Value
The request with the ContentType set
Remarks
The content type for the content being uploaded. This property defaults to "binary/octet-stream". For more information, refer to: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17.
Note that if content type is specified, it should also be included in the HttpRequest headers of the eventual upload request, otherwise a signature error may result.