Hi Wiki Devs,
First things first: MW 1.13.2 (We're upgrading in the next couple months, managers are slow.) PHP 5.2.8 MySQL 5.1.4 Windows Server 2003 & IIS 6.0 (client requirements)
I need to be able to create a temporary excel file from a report about what types of files are uploaded to my wiki. We wrote this extension and it worked until we got more serious about locking down our permissions in a good way. Now the excel creation still works for people with Admin rights, but not for our normal users who really want it.
The users can still upload files to the wiki, and since we are making the excel file in the images/tmp directory I assume there is a difference between how we put our new excel file in the images directory and how MediaWiki puts uploaded files in the wiki.
I've seen error messages in the past which seem to say that files are first uploaded to a temporary directory in the PHP folder and then the PHP user loads them to the wiki. This seemed like a way to go with the excel file, but when I began reading through the includes files that seemed to be involved in uploading a file I couldn't find specifically how it was done. Also, the wiki way to upload seems inextricably tied to creating an image page, which we don't want or need for this report generation.
Does anyone have any clues for me on either: -how to start figuring out the wiki image upload code? OR -another way to get around Windows permissions and create this file for our users?
Thanks! Courtney Christensen
Let me see if i have understood it.
You wrote an extension we don't know anything about. You then changed the wiki settings in a specified way. The extension now doesn't work for normal users.
and you want us to fix the extension for you just from that description?
2010/1/29 Christensen, Courtney ChristensenC@battelle.org:
Does anyone have any clues for me on either: -how to start figuring out the wiki image upload code? OR -another way to get around Windows permissions and create this file for our users?
Have you tried the importImages.php maintenance script?
Roan Kattouw (Catrope)
From: Roan Kattouw Sent: Friday, January 29, 2010 12:15 PM
2010/1/29 Christensen, Courtney ChristensenC@battelle.org:
Does anyone have any clues for me on either: -how to start figuring out the wiki image upload code? OR -another way to get around Windows permissions and create this file for our >>users?
Have you tried the importImages.php maintenance script?
Roan Kattouw (Catrope)
_______________________________________________
Thank you so much, Roan. That was the type of hint I was looking for. I had been trying to read through the includes files and hadn't gotten to the maintenance scripts yet.
-Courtney
wikitech-l@lists.wikimedia.org