Content-type To Be Used For Uploading Svg Images To AWS S3


Answer :

As you mentioned, the correct Content-Type for SVG files is "image/svg+xml".



Even if the AWS console does not provide that value in the Content-Type selection field, you can enter it anyway and S3 will accept it.



AWS specifies the following in their API docs for the Content-Type header:




A standard MIME type describing the format of the contents. For more information, go to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.17.



Type: String



Default: binary/octet-stream



Valid Values: MIME types



Constraints: None




For additional details see http://docs.aws.amazon.com/AmazonS3/latest/API/RESTObjectPUT.html



Comments

Popular posts from this blog

Converting A String To Int In Groovy

"Cannot Create Cache Directory /home//.composer/cache/repo/https---packagist.org/, Or Directory Is Not Writable. Proceeding Without Cache"

Android SDK Location Should Not Contain Whitespace, As This Cause Problems With NDK Tools