Subject: | File uploading wasn't working (includes patch) |
Uploads were not working. They did work at some point but something
must have changed either with mediawiki or with the module.
I'm running mediawiki 1.11.0
See the attached patch for a fix. I have my installation running from
http://mywebsite/mediawiki/index.php with a shortcut configured at
http://mywebsite/wiki/
the upload tried to post the image
to /mediawiki/index.php/Special:Upload which does not work.
I have changed it so it tries to post
to /mediawiki/index.php?title=Special%3AUpload which seem to make more
sense.
I also updated the submit value text from "upload" to "Upload file"
Subject: | page.diff |
--- page.pm 2007-09-24 08:54:58.000000000 +0100
+++ /usr/share/perl5/MediaWiki/page.pm 2007-11-09 20:55:40.000000000 +0000
@@ -427,7 +427,7 @@
#
# TODO: check for all known warnings; return extended error info
#
- my $upload_url = $obj->{client}->{index} . "/Special:Upload";
+ my $upload_url = $obj->_wiki_url("Special:Upload");
my $loop = 0;
first_try_or_redir:
@@ -439,7 +439,7 @@
'wpUploadFile' => [ undef, $title, Content => $content ],
'wpDestFile' => $title,
'wpUploadDescription' => $note ? $note : "",
- 'wpUpload' => 'upload',
+ 'wpUpload' => 'Upload file',
'wpIgnoreWarning' => $force ? 'true' : 0
)]
);