Skip to content

Commit 4443dce

Browse files
author
Jamie Hannaford
authored
Merge pull request rackspace#680 from vanilla/working
Fix segment name to avoid corrupted retrieval of a file with 10 or more segments
2 parents 3ffee7b + d8aa69d commit 4443dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/OpenCloud/ObjectStore/Upload/TransferPart.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public function getPath()
135135
*/
136136
public static function createRequest($part, $number, $client, $options)
137137
{
138-
$name = sprintf('%s/%s/%d', $options['objectName'], $options['prefix'], $number);
138+
$name = sprintf('%s/%s/%05d', $options['objectName'], $options['prefix'], $number);
139139
$url = clone $options['containerUrl'];
140140
$url->addPath($name);
141141

0 commit comments

Comments
 (0)