如何将文件更新到 rackspace api?我已经尝试了一些类似下面的代码的东西,它只有在我上传图像两次时才有效。反正有这样做吗?
public function updateRackSpaceFile($file_name, $file_location, $container_name='photos'){
$auth=self::getAuthorization();
$conn = new \CF_Connection($auth);
$container_object = $conn->get_container($container_name);
$object=$container_object -> get_object($file_name);
$object ->load_from_filename($file_location);
}