'{username}', 'apiKey' => '{apiKey}', )); // 2. Obtain an Object Store service object from the client. $objectStoreService = $client->objectStoreService(null, '{region}'); // 3. Get container. $container = $objectStoreService->getContainer('{containerName}'); // 4. Specify the locations of the files you want to upload $objects = array( array( 'name' => '{objectName1}', 'path' => '{localFilePath1}' ), array( 'name' => '{objectName2}', 'path' => '{localFilePath2}' ) ); // 5. Specify any metadata you want your objects to have $metadata = array('{key}' => '{value}'); $metadataHeaders = DataObject::stockHeaders($metadata); // 6. Merge the metadata with any additional HTTP headers you want to set $allHttpHeaders = array('Content-Type' => '{contentType}') + $metadataHeaders; // 7. Upload them $container->uploadObjects($objects, $allHeaders);