public addObject ( string $objectName, string | SplFileInfo $contentFile, array $requestHeaders = null ) : ClientResponseInterface | ||
$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 | ClientResponseInterface | Returns response on success or throws an exception |