From 406b6916c75946f8356dac2126058bd284241eab Mon Sep 17 00:00:00 2001 From: Alex Z Date: Thu, 17 Sep 2009 01:03:52 +0000 Subject: [PATCH] Actually use the filename supplied by the user. --- includes/api/ApiUpload.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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' ) ); -- 2.20.1