Sfoglia il codice sorgente

fix combining chunks files out of order issue

xu ding 9 anni fa
parent
commit
afd24b8e3b
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  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);