AWS PHP SDK ContentType not being set
up vote
0
down vote
favorite
When uploading to S3 via PHP SDK even after setting the correct ContentType
S3 still shows application/octet-stream
$file = Aws::putObject([
'Bucket' => 'types-jpeg',
'Key' => 'current.jpg',
'SourceFile' => 'uploads/current.jpg',
'ContentType' => 'image/jpeg',
'ACL' => 'public-read',
]);
File successfully uploads except that viewing the file's meta data shows application/octet-stream
instead of 'image/jpeg' on its Content-Type
Any ideas?
amazon-s3 content-type aws-php-sdk
add a comment |
up vote
0
down vote
favorite
When uploading to S3 via PHP SDK even after setting the correct ContentType
S3 still shows application/octet-stream
$file = Aws::putObject([
'Bucket' => 'types-jpeg',
'Key' => 'current.jpg',
'SourceFile' => 'uploads/current.jpg',
'ContentType' => 'image/jpeg',
'ACL' => 'public-read',
]);
File successfully uploads except that viewing the file's meta data shows application/octet-stream
instead of 'image/jpeg' on its Content-Type
Any ideas?
amazon-s3 content-type aws-php-sdk
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
When uploading to S3 via PHP SDK even after setting the correct ContentType
S3 still shows application/octet-stream
$file = Aws::putObject([
'Bucket' => 'types-jpeg',
'Key' => 'current.jpg',
'SourceFile' => 'uploads/current.jpg',
'ContentType' => 'image/jpeg',
'ACL' => 'public-read',
]);
File successfully uploads except that viewing the file's meta data shows application/octet-stream
instead of 'image/jpeg' on its Content-Type
Any ideas?
amazon-s3 content-type aws-php-sdk
When uploading to S3 via PHP SDK even after setting the correct ContentType
S3 still shows application/octet-stream
$file = Aws::putObject([
'Bucket' => 'types-jpeg',
'Key' => 'current.jpg',
'SourceFile' => 'uploads/current.jpg',
'ContentType' => 'image/jpeg',
'ACL' => 'public-read',
]);
File successfully uploads except that viewing the file's meta data shows application/octet-stream
instead of 'image/jpeg' on its Content-Type
Any ideas?
amazon-s3 content-type aws-php-sdk
amazon-s3 content-type aws-php-sdk
edited Nov 5 at 3:41
asked Nov 5 at 3:21
Jhourlad Estrella
2,17932551
2,17932551
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53147886%2faws-php-sdk-contenttype-not-being-set%23new-answer', 'question_page');
}
);
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password