I changed the UpLoad.php plugin file to calculate the
appropriate upload directory from an Upload entry in the
InterWikiMap page.
Not yet tested thoroughly, but I guess it's a good
improvement.
Btw: I'm an M$ dummy, so I attached the whole file
instead of a diff :(
new UpLoad plugin file
Logged In: YES
user_id=925869
Changed as of
"
Revision 1.10 2004/04/12 10:19:18 rurban
"
Logged In: YES
user_id=13755
This is a good idea.
But I want to change the upload dir to be user-specific also.
Upload:MyUserName/uploaded-file.txt
Maybe we should add a %u to be expanded to the curretn
username in the interwiki map, similar to %s for the pagename.
Logged In: YES
user_id=13755
That's still not correct for custom interwiki map's, but I
see what I can do. I'll also add %u and %d expansion
(username and date)
and mkdir the intermediate dirs.
Note that "Upload:" is automatically added to the interwiki
map at startup, so most of your logic is not needed.