From: Brion Vibber Date: Wed, 6 Apr 2011 22:16:38 +0000 (+0000) Subject: * (bug 28368) add hint for multipart/form-data to api information of action=import... X-Git-Tag: 1.31.0-rc.0~30984 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=b0497da1fccdea46c2847f38aa76891db86f33c7;p=lhc%2Fweb%2Fwiklou.git * (bug 28368) add hint for multipart/form-data to api information of action=import&xml= --- 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() {