Christoph Bünker wrote:
Thanks for the answer, but this is not exactly that what I want to do. I would like to create a fast solution and store the image and the visio file in the wiki. So I really need to know, how to call the function to upload a file to the wiki. I "know", that it is done in the SpecialUpload Page with the help of a request but I have no clue how this request looks like and how it is build by the system. So is there anyone who can help me?
You might take a peek at maintenance/importImages.php, which does batch uploading from the command line. Strip it down to just the bits that actually store and record the file, and you can stick that in your extension tool.
-- brion vibber (brion @ wikimedia.org)