From b0497da1fccdea46c2847f38aa76891db86f33c7 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Wed, 6 Apr 2011 22:16:38 +0000 Subject: [PATCH] * (bug 28368) add hint for multipart/form-data to api information of action=import&xml= --- includes/api/ApiImport.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/includes/api/ApiImport.php b/includes/api/ApiImport.php index c497b9c933..f01035cc76 100644 --- a/includes/api/ApiImport.php +++ b/includes/api/ApiImport.php @@ -132,7 +132,11 @@ class ApiImport extends ApiBase { } public function getDescription() { - return 'Import a page from another wiki, or an XML file'; + return array( + 'Import a page from another wiki, or an XML file.' , + 'Note that the HTTP POST must be done as a file upload (i.e. using multipart/form-data) when', + 'sending a file for the "xml" parameter.' + ); } public function getPossibleErrors() { -- 2.20.1