public addObject ( |
||
$bucketName | A bucket name. | |
$objectName | string | An object name. |
$contentFile | string | SplFileInfo | File content of file that should be uploaded. If you provide a path to the file you should pass SplFileInfo object. |
$requestHeaders | array | optional Request headers |
return | Scalr\Service\Aws\Client\ClientResponseInterface | Returns response on success or throws an exception |
public function addObject($bucketName, $objectName, $contentFile, array $requestHeaders = null)
{
if ($bucketName instanceof BucketData) {
$bucketName = $bucketName->bucketName;
}
return $this->getS3()->getApiHandler()->addObject($bucketName, $objectName, $contentFile, $requestHeaders);
}