Index: trunk/extensions/ResumableUpload/ResumableUploadHandler.php |
— | — | @@ -146,7 +146,7 @@ |
147 | 147 | |
148 | 148 | if ( $this->getRealPath( $this->repoPath ) ) { |
149 | 149 | if ( $this->getSize( $this->repoPath ) == $this->mChunkOffset ) { |
150 | | - $this->status = $this->appendToUploadFile( $this->repoPath, $this->mTempPath ); |
| 150 | + $this->status = $this->appendToUploadFile( $this->mTempPath, $this->repoPath ); |
151 | 151 | if ( $this->mFileSize > $wgMaxUploadSize ) |
152 | 152 | $this->status = Status::newFatal( 'largefileserver' ); |
153 | 153 | } else { |
— | — | @@ -165,6 +165,7 @@ |
166 | 166 | */ |
167 | 167 | public function finalizeFile() { |
168 | 168 | $this->appendChunk(); |
| 169 | + $this->appendFinal( $this->repoPath ); |
169 | 170 | $this->mTempPath = $this->getRealPath( $this->repoPath ); |
170 | 171 | } |
171 | 172 | } |