Image Uploads in Mediawiki 1.15

Use this forum to ask questions about how to do things with my MediaWiki Extensions.

Image Uploads in Mediawiki 1.15

Postby vracks » June 2nd, 2010, 1:11 pm

In MediaWiki How to set the upload Directory during runtime(ie dynamically at runtime)into which the the uploaded images to reside.
ie how to set the global Varaible $wgUploadDirectory with the relative path from runtime..

Based on the runtime how to the path so that the images get uploaded to different sub folders under default images folder.
User avatar
vracks
Rank 0
Rank 0
 
Posts: 2
Joined: June 2nd, 2010, 1:02 pm

Re: Image Uploads in Mediawiki 1.15

Postby Paul » June 2nd, 2010, 8:12 pm

I don't see that can be done.... try to search for any extension.... :o
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm

Re: Image Uploads in Mediawiki 1.15

Postby vracks » June 3rd, 2010, 1:50 am

I am right now using a extension called specialUploadLocal for bulk upload of images. Which uses a form to tell which are the images to be uploaded . This by default uses a global variable $wgUploadDirectory to upload all the images into images directory under the mediawiki root. But my requirement is to upload the images into different sub directories under images directory dynamically set during run time.

Please help me out in this if u can......
User avatar
vracks
Rank 0
Rank 0
 
Posts: 2
Joined: June 2nd, 2010, 1:02 pm

Re: Image Uploads in Mediawiki 1.15

Postby Paul » June 3rd, 2010, 8:53 pm

Hack into that extension, and do whatever you like... coding is required I believe...
User avatar
Paul
Development Team Leader
Development Team Leader
 
Posts: 1132
Joined: October 20th, 2007, 2:23 pm


Return to MediaWiki Extensions 'How Do I' Questions

Who is online

Users browsing this forum: No registered users and 1 guest

cron