No AWS SDK for PHP v3 the method putObject receives various parameters, such as ContentType, ContentEncoding, etc.
In its simplest form , I can insert an object only by telling Bucket
, Key
and SourceFile
.
$result = $s3->putObject(array(
'Bucket' => $bucket,
'Key' => $keyname,
'SourceFile' => $filepath
));
Considering that I'm going to insert photos and that they should stay in s3 until I want to delete them, what are the advantages / disadvantages of passing metadata like ContentType
, ContentEncoding
among others?
In the simplest format, passing only Bucket
, Key
and SourceFile
will answer my case?