-
Notifications
You must be signed in to change notification settings - Fork 158
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
Labels
No labels