r93960 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93959‎ | r93960 | r93961 >
Date:08:49, 5 August 2011
Author:j
Status:ok
Tags:
Comment:
dont use deprecated function WebRequest::getFileSize
Modified paths:
  • /trunk/phase3/includes/api/ApiUpload.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/api/ApiUpload.php
@@ -124,7 +124,7 @@
125125 } elseif ( $this->mParams['chunk'] ) {
126126 $result['result'] = 'Continue';
127127 $chunk = $request->getFileTempName( 'chunk' );
128 - $chunkSize = $request->getFileSize( 'chunk' );
 128+ $chunkSize = $request->getUpload( 'chunk' )->getSize();
129129 if ($this->mParams['offset'] == 0) {
130130 $result['filekey'] = $this->performStash();
131131 } else {

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r93720Extend upload api adding an option to upload files in chunks,...j10:13, 2 August 2011

Status & tagging log