1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[rackspace|storage] tweaking upload large file example to use X-Object-Manifest header in anticipation of PR #1855

This commit is contained in:
Kyle Rames 2013-06-03 16:58:25 -05:00
parent 05d6390905
commit 266d8c8dfb
2 changed files with 2 additions and 2 deletions

View file

@ -396,7 +396,7 @@ Cloud Files requires files larger than 5 GB to be uploaded into segments along w
end
# write manifest file
service.put_object_manifest("my_container", "large_file")
service.put_object_manifest("my_container", "large_file", 'X-Object-Manifest' => "my_container/large_file")
Segmented files are downloaded like ordinary files. See [Download Files](#download-files) section for more information.

View file

@ -87,7 +87,7 @@ File.open(file_name) do |f|
end
puts "\n\n\tWriting manifest #{segment_name}\n\n"
service.put_object_manifest(directory.key, segment_name, 'segments_prefix' => "#{segment_name}/")
service.put_object_manifest(directory.key, segment_name, 'X-Object-Manifest' => "#{directory.key}/#{segment_name}/" )
puts <<-NOTE
You should now be able to download #{segment_name} from the cloud control panel or using the following code: