-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ObjectStore: manifest not present in object created via createLargeObject() #328
Comments
My bad! The code for download a single object should be same as for download large object! So, the problem concerns only uploading large object. It seems that the manifest isn't present in the object stat. I will investigate this. |
I uploaded a 50MiB file with the $service = $openstack->objectStoreV1();
$options = [
'name' => 'my_large_file',
'stream' => new Stream(fopen('my_large_file', 'r')),
'segmentSize' => 10000000,
'segmentContainer' => 'my_container_segments'
];
$service
->getContainer('my_container')
->createLargeObject($options)
->mergeMetadata(["meta1" => "value1"]); swift stat my_container my_large_file
If I upload the same file with swift upload -S 10000000 -m "meta1:value1" my_container my_large_file
swift stat my_container my_large_file
We can see that:
It explains why I'm unable to download it. |
I followed the sample code
samples/objectstore/v1/objects/download.php
.It's working for single objects created with
createObject()
but no withcreateLargeObject()
! The returned stream is empty...Please could you provide a sample code to download large files?
The text was updated successfully, but these errors were encountered: