From 4ba1e9fb35a85e600dd60780c0f188d326e1966f Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Sat, 25 Jul 2009 00:07:35 +0000 Subject: [PATCH] (bug 19914) ApiUpload needs to use write mode. --- includes/api/ApiUpload.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/includes/api/ApiUpload.php b/includes/api/ApiUpload.php index c604a6aab6..1bb29356cb 100644 --- a/includes/api/ApiUpload.php +++ b/includes/api/ApiUpload.php @@ -284,6 +284,10 @@ class ApiUpload extends ApiBase { return true; } + public function isWriteMode() { + return true; + } + public function getAllowedParams() { return array( 'filename' => null, -- 2.20.1