Manual:Wikibot/UploadBot

This code will upload all the files in a directory. It will ignore subdirectories. You will need to have wikibot.classes.php (see Manual:Wikibot) in the same directory as this file, UploadBot.php, in order for it to work.

Usage
After configuring the code, go to a command prompt and type:

Configuration
Modify these lines in the source code: Make sure you set up your bot and wiki in the wikibot.config.php file; see Manual:Wikibot.