Hi all together,
I am trying to develop a Visio to Image Converter fort he Mediawiki. It should work like this:
- Visio file is uploaded in the Wiki
- Image file is created on the Server
- Image file is automatically uploaded in the Wiki
For the automatic-upload, I would like to create an Uploadpage and fill in the Source and the destination file which is normally done by the user with the values I know from the server.
The problem is now, that I have looked through the code quite a while but I did not find the right place to call the upload.
I am using the MediaWiki 1.10.1. I know this is an older version but I dont really want to change it.
Can anyone help me or any suggestions?
Greetings
Christoph
Christoph Bünker wrote:
I am trying to develop a Visio to Image Converter fort he Mediawiki. It should work like this:
Visio file is uploaded in the Wiki
Image file is created on the Server
Image file is automatically uploaded in the Wiki
What you may wish to do is create an image handler plugin which handles the rasterization, so you can use [[Image:Whatever.vsd]] within the wiki as normal.
You'll find the built-in handlers here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/media/
And some sample plugins: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/PdfHandler/ http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/OggHandler/
-- brion vibber (brion @ wikimedia.org)
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?
Greetings Christoph
-----Ursprüngliche Nachricht----- Von: wikitech-l-bounces@lists.wikimedia.org [mailto:wikitech-l-bounces@lists.wikimedia.org] Im Auftrag von Brion Vibber Gesendet: Donnerstag, 3. Januar 2008 21:34 An: Wikimedia developers Betreff: Re: [Wikitech-l] Automatic Image upload
Christoph Bünker wrote:
I am trying to develop a Visio to Image Converter fort he Mediawiki. It should work like this:
Visio file is uploaded in the Wiki
Image file is created on the Server
Image file is automatically uploaded in the Wiki
What you may wish to do is create an image handler plugin which handles the rasterization, so you can use [[Image:Whatever.vsd]] within the wiki as normal.
You'll find the built-in handlers here: http://svn.wikimedia.org/viewvc/mediawiki/trunk/phase3/includes/media/
And some sample plugins: http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/PdfHandler/ http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/OggHandler/
-- brion vibber (brion @ wikimedia.org)
_______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org http://lists.wikimedia.org/mailman/listinfo/wikitech-l
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)
wikitech-l@lists.wikimedia.org