Explorar o código

fix combining chunks files out of order issue

xu ding %!s(int64=9) %!d(string=hai) anos
pai
achega
afd24b8e3b
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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);