public function copyFile($origFilePath, $targetFilePath, $publicAccess = true)
	{
		$origFilePath = str_replace('//', '/', $origFilePath);
		$targetFilePath = str_replace('//', '/', $targetFilePath);
		$result = $this->s3Client->copyObject(array(
			'Bucket' => $this->getBucket(),
			'CopySource' => $origFilePath,
			'Key'    => $targetFilePath,
			'ACL'    => $publicAccess ? self::PUBLIC_READ : self::PRIVATE_ACCESS
		));

		return $result;
	}
public function copyFile($origFilePath, $targetFilePath, $publicAccess = true)
	{
		$origFilePath = str_replace('//', '/', $origFilePath);
		$targetFilePath = str_replace('//', '/', $targetFilePath);
		$result = $this->s3Client->copyObject(array(
			'Bucket' => $this->getBucket(),
			'CopySource' => $origFilePath,
			'Key'    => $targetFilePath,
			'ACL'    => $publicAccess ? self::PUBLIC_READ : self::PRIVATE_ACCESS
		));

		return $result;
	}
public function copyFile ( $ origFilePath , $ targetFilePath , $ publicAccess = true ) { $ origFilePath = str_replace ( '//' , '/' , $ origFilePath ) ; $ targetFilePath = str_replace ( '//' , '/' , $ targetFilePath ) ; $ result = $ this -> s3Client -> copyObject ( array ( 'Bucket' => $ this -> getBucket ( ) , 'CopySource' => $ origFilePath , 'Key' => $ targetFilePath , 'ACL' => $ publicAccess ? self :: PUBLIC_READ : self :: PRIVATE_ACCESS ) ) ; return $ result ; }
Copies files on s3 storage
@param  string $origFilePath   The name of the source bucket and key name of the source object, separated by a slash (/). Must be URL-encoded
@param  string $targetFilePath new file path
@return mixed
Copies files on s3 storage