From: Alex Z Date: Thu, 17 Sep 2009 01:03:52 +0000 (+0000) Subject: Actually use the filename supplied by the user. X-Git-Tag: 1.31.0-rc.0~39695 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=406b6916c75946f8356dac2126058bd284241eab;p=lhc%2Fweb%2Fwiklou.git Actually use the filename supplied by the user. --- diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index 64866ea5fc..ef0687bb0e 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -129,7 +129,7 @@ class ApiUpload extends ApiBase { if ( isset( $this->mParams['file'] ) ) { $this->mUpload = new UploadFromFile(); $this->mUpload->initialize( - $request->getFileName( 'file' ), + $this->mParams['filename'], $request->getFileTempName( 'file' ), $request->getFileSize( 'file' ) );