public class FileUpload extends MWAction
To allow your bot to upload media in your MediaWiki. Add at least the following line to your
MediaWiki's LocalSettings.php:
$wgEnableUploads = true;For more details see also Upload Config
| Constructor and Description |
|---|
FileUpload(MediaWikiBot bot,
String filename) |
FileUpload(SimpleFile simpleFile,
MediaWikiBot bot) |
| Modifier and Type | Method and Description |
|---|---|
HttpAction |
getNextMessage() |
boolean |
hasMoreMessages() |
String |
processReturningText(String xml,
HttpAction hm)
Deals with the MediaWiki API's response by parsing the provided text.
|
createNsString, evaluateXpath, getErrorElement, getRootElement, getRootElementWithError, isSelfExecuter, processAllReturningText, setExceptionHandler, setHasMoreMessagespublic FileUpload(SimpleFile simpleFile, MediaWikiBot bot)
public FileUpload(MediaWikiBot bot, String filename)
public HttpAction getNextMessage()
public boolean hasMoreMessages()
hasMoreMessages in interface ContentProcessablehasMoreMessages in class MWActionpublic String processReturningText(String xml, HttpAction hm)
MWActionprocessReturningText in interface ReturningTextprocessReturningText in class MWActionxml - the answer to the most recently generated MediaWiki API requesthm - the requestor messageCopyright © 2013. All Rights Reserved.