* (bug 28368) add hint for multipart/form-data to api information of action=import...
authorBrion Vibber <brion@users.mediawiki.org>
Wed, 6 Apr 2011 22:16:38 +0000 (22:16 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Wed, 6 Apr 2011 22:16:38 +0000 (22:16 +0000)
includes/api/ApiImport.php

index c497b9c..f01035c 100644 (file)
@@ -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() {