Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

ObjectStore: manifest not present in object created via createLargeObject() #328

Open
@olivbd

Description

I followed the sample code samples/objectstore/v1/objects/download.php.

<?php
require 'vendor/autoload.php';
$openstack = new OpenStack\OpenStack([
 'authUrl' => '{authUrl}',
 'region' => '{region}',
 'user' => [
 'id' => '{userId}',
 'password' => '{password}'
 ],
 'scope' => ['project' => ['id' => '{projectId}']]
]);
/** @var \GuzzleHttp\Stream\Stream $stream */
$stream = $openstack->objectStoreV1()
 ->getContainer('{containerName}')
 ->getObject('{objectName}')
 ->download();
file_put_contents('my_dest_file.bin', $stream->getContents());

It's working for single objects created with createObject() but no with createLargeObject() ! The returned stream is empty...

Please could you provide a sample code to download large files?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

        AltStyle によって変換されたページ (->オリジナル) /