Index: branches/wmf-deployment/includes/api/ApiUpload.php |
— | — | @@ -129,7 +129,7 @@ |
130 | 130 | if ( isset( $this->mParams['file'] ) ) { |
131 | 131 | $this->mUpload = new UploadFromFile(); |
132 | 132 | $this->mUpload->initialize( |
133 | | - $request->getFileName( 'file' ), |
| 133 | + $this->mParams['filename'], |
134 | 134 | $request->getFileTempName( 'file' ), |
135 | 135 | $request->getFileSize( 'file' ) |
136 | 136 | ); |