Merge "Make UploadBase use TempFSFile to wrap the temporary file"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 10 Mar 2016 20:04:54 +0000 (20:04 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 10 Mar 2016 20:04:54 +0000 (20:04 +0000)
1  2 
includes/filerepo/FileRepo.php
includes/filerepo/file/LocalFile.php
includes/upload/UploadBase.php
includes/upload/UploadFromChunks.php

Simple merge
Simple merge
Simple merge
@@@ -145,13 -145,11 +145,12 @@@ class UploadFromChunks extends UploadFr
                if ( !$status->isOk() ) {
                        return $status;
                }
 +
                wfDebugLog( 'fileconcatenate', "Combined $i chunks in $tAmount seconds." );
  
-               // File system path
-               $this->mTempPath = $tmpPath;
-               // Since this was set for the last chunk previously
-               $this->mFileSize = filesize( $this->mTempPath );
+               // File system path of the actual full temp file
+               $this->setTempFile( $tmpPath );
                $ret = $this->verifyUpload();
                if ( $ret['status'] !== UploadBase::OK ) {
                        wfDebugLog( 'fileconcatenate', "Verification failed for chunked upload" );