Browse Source

fix combining chunks files out of order issue

xu ding 9 years ago
parent
commit
afd24b8e3b
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/Resumable.php

+ 2 - 0
src/Resumable.php

@@ -145,6 +145,8 @@ class Resumable
     {
         $this->_log('Beginning of create files from chunks');
 
+        natsort($chunkFiles);
+
         $destFile = new File($destFile, true);
         foreach ($chunkFiles as $chunkFile) {
             $file = new File($chunkFile);