Quellcode durchsuchen

fix combining chunks files out of order issue

xu ding vor 9 Jahren
Ursprung
Commit
afd24b8e3b
1 geänderte Dateien mit 2 neuen und 0 gelöschten Zeilen
  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);