Prechádzať zdrojové kódy

fix combining chunks files out of order issue

xu ding 9 rokov pred
rodič
commit
afd24b8e3b
1 zmenil súbory, kde vykonal 2 pridanie a 0 odobranie
  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);