Extension talk:MultiUpload/LQT Archive 1

=Improvements= This extensions seems quite useful. Nice work! A few suggestions for improvements : --Morten Blaabjerg 13:59, 31 January 2007 (UTC)
 * Allow for full customizability & multilingual support - i.e. no text messages in the php file itself - but everything in the database
 * Allow for user to specify how many uploads are needed
 * Allow user to specify the same description/summary for all uploads (checkbox)

Looks nice, but the source seems to be offline at the moment. I would like to see a batch upload via a multi-select box.24.177.55.8 23:42, 20 February 2007 (UTC)

I don't think it works on the latest version of Mediawiki 1.9.3...I get an error (unexpected T_Require_Once) error when requiring it. --66.31.65.129 02:20, 13 April 2007 (UTC)

Guys...stupid question...how do you actually use this extension in a Wiki page ? tried writing  and several other combinations, but they were not interpreted by Wiki (in other words, it didn;t work :p). Can anybody shed some light ? thanks :) --86.121.11.70 00:51, 10 May 2007 (UTC)
 * in the 'search' field enter Special:MultipleUpload .. should work --Dtsig 16:02, 7 June 2007 (UTC)
 * or edit MediaWiki:Sidebar: add . Great extension BTW, thanks to the author! --86.59.60.209 21:51, 18 July 2007 (UTC)

= How to replace 'Upload file' with ' Upload files' in the Toolbox menu? =

Any suggestions on how to replace 'Upload file' with ' Upload files' in the Toolbox menu? I would like to use MultiUpload by default, but I see no way to edit the toolbox. Thanks.

Michiel (wientjes.org)

This probably isn't the best way, but if you edit LocalSettings.php and add the line: $wgUploadNavigationUrl = '/index.php/Special:MultipleUpload'; That should alter the "Upload file" URL to point at the right special page. If you look in languages/messages/MessagesEn.php you should fine a couple of entries which use the text "Upload file", I think one is for the Toolbox link and the other is for the form button. Changing this text to "Upload files" seems to do the trick. Note that this will also change the text on the button used on the Special:Upload page too.

Adam (www.appendixv.org)

= SVN Problems =

When trying to d/l, I get: $ svn co http://svn.wikimedia.org/viewvc/mediawiki/trunk/extensions/MultiUpload svn: PROPFIND request failed on '/viewvc/mediawiki/trunk/extensions/MultiUpload' svn: PROPFIND of '/viewvc/mediawiki/trunk/extensions/MultiUpload': 301 Moved (http://svn.wikimedia.org)


 * You need to change "viewvc" to "svnroot". I know the error is not that helpful, and on some systems the same URL works both for the browser and svn because it gets redirected according to the type of client.86.27.137.201 10:23, 20 October 2007 (UTC)

= Upload Files from URL =

Does anyone know how easy it would be to retrofit an Upload form like this to accept input in the form of online images or other files (ie, http://example.com/image.jpg)? -Blckdmnd99 17:40, 29 August 2007 (UTC)

= Suggested modification =

I've modified MultiUpload so that it refers to a wiki message called "MediaWiki:Multiuploadtext", so that the end user can easily modify the text block before the upload fields without touching the actual extension.

Basically, at line 43 of the extension change 'multipleuploadtext' to read:

For examples, see:


 * http://media.battlestarwiki.org/wiki/MediaWiki:Multiuploadtext (for the text)
 * http://media.battlestarwiki.org/wiki/Special:MultipleUpload (for how it looks on the file)

Let me know what everyone's thoughts are. -- Joe Beaudoin Jr. 23:05, 30 August 2007 (UTC)

= Does not work on 1.11 =

Just an FYI, this extension does not work properly on 1.11. You'll just be returned to the Special:MultiUpload page, which repeats itself (i.e. if you try to upload five items, you get five forms, with one item per form). -- Joe Beaudoin Jr. 22:49, 5 October 2007 (UTC)


 * i would not generalize this, because i am also running wiki 1.11 and this extensions works fine since i changed the line in SpecialUpload.php as explained from the installation-page. Probably the extention interfers with some other from you wiki.
 * kind regards -- Turbo''Kanne 20:53, 10 February 2008.

= PHP warnings about allow_call_time_pass_reference =

This is a good extension. I found it made PHP5 give a warning on my hosting setup about php allow_call_time_pass_reference. This is a non-fatal warning, so I used ini_set to modify the error reporting and hide the error. I added this to LocalSettings.php: ini_set('error_reporting', E_ERROR); This still reports errors, but hides warnings. --Rob 09:10, 27 October 2007 (UTC)

Same here! Ditto.

=Error: You have requested an invalid special page.= At our site, www.afterwiki.info I have upgraded from mediawiki 1.6 to the latest version (1.11 I believe). When I had done that, the multiple upload extension didn't work anymore. I get the message above, "[you have requested an invalid special page]".

Also it can have something to do with allowed uploads, I disabled uploading .png files and enabled .pdf files.

Anybody got any ideas how to fix this?

Fatal error: Call to undefined function (mw1.9.3)
Fatal error: Call to undefined function wfLoadExtensionMessages in /var/www/mediawiki-1.9.3/extensions/MultiUpload/SpecialMultipleUpload.php on line 37

This error was received once extension was added. Can someone please assist.
 * I am getting this same error. I can get things to work by commenting out line 37, but my messages are coming out very odd, like it's expanding the lt; and gt; tags rather than parsing them to "<" and ">". --Elonka 21:03, 24 November 2007 (UTC)
 * Same error here, using MW1.6.10 - Bernardo Maciel


 * That is because  function was added in MW 1.10 (or 1.11, can't remember exactly). Either you should try an older version of MultiUpload extension or then do the better solution and upgrade your MediaWiki, if possible. -- Sayuri  11:31, 6 March 2008 (UTC)

possible bugs - 29805
Hi Travis -

I really like your MediaWiki MultiUpload Extension (http://www.mediawiki.org/wiki/Extension:MultiUpload). I'm glad and thankful that you updated it for MediaWiki 1.11.x.

However, I'm presently having two problems using revision 29805 that are preventing me from deploying it: filename" it doesn't ever apply the destination filename. Instead the file is always uploaded with the source filename. whenever you try to upload a file with a filename that already exists. Your extension doesn't give a warning, but just overwrites the pre-existing file and the user doesn't even know that they overwrote someone else's file.
 * Whenever I set a "Destination filename" that differs from the "Source
 * The built-in MediaWiki single file upload tool gives a warning

Other than that it's great. Many thanks

destroys my wiki
Tried installing this plugin, but every page on my wiki gets overwritten by the contents of SpecialMultipleUpload.php. I have the latest version of mediawiki as of Feb 26th 2008. --64.142.49.14 19:51, 26 February 2008 (UTC)
 * Don't use the extension... it does not work on the newest version (1.11.x), which is what you're using. -- Joe Beaudoin Jr. 02:17, 27 February 2008 (UTC)


 * Works well with my MW v1.11.1 (tested SpecialMultipleUpload.php rev 29805 & 30949) and do the hack in includes/SpecialUpload.php. --Vonloschz 14:19, 28 February 2008 (UTC)


 * Destroys my wiki too (v1.12.0). Followed the directions but this shows up:

[mediawiki] / trunk / extensions / MultiUpload / SpecialMultipleUpload.i18n.php 	Repository: mediawikimysqlpywikipedia ViewVC logotype Log of /trunk/extensions/MultiUpload/SpecialMultipleUpload.i18n.php

Parent Directory Parent Directory Links to HEAD: 	(view) (download) (as text) (annotate) Sticky Revision: Revision 32720 - (view) (download) (as text) (annotate) - [select for diffs] Modified Wed Apr 2 18:19:05 2008 UTC (22 hours, 46 minutes ago) by siebrand File length: 27080 byte(s) Diff to previous 32575

Localisation updates for extension messages from Betawiki (2008-04-02 19:39 CEST)

Revision 32575 - (view) (download) (as text) (annotate) - [select for diffs] Modified Sat Mar 29 21:38:49 2008 UTC (4 days, 19 hours ago) by siebrand File length: 26724 byte(s) Diff to previous 32515 --Mmagroup 23:46, 3 April 2008 (UTC)

= Suggestion: Add Image Names to Result Page =

First, this is a totally useful extension, Thanks!

After uploading a file, it is very convenient to have the filename of the image visible on the results page. That way, I can copy and paste the image into the wiki page I'm writing

Right now, after uploading, the results page reads: Upload files (thumbnail of image 1) File uploaded. (thumbnail of image 2) File uploaded. (thumbnail of image 3) File uploaded.

I'd love to see something like this: Upload files (thumbnail of image 1) Image:image_1.jpg File uploaded successfully (thumbnail of image 2) Image:image_2.jpg File uploaded successfully (thumbnail of image 3) Image:image_3.jpg File uploaded successfully

If you were feeling really bold, an option on Localsettings.php would let you specify prefixes and suffixes to the image name. So you could do something like this: $MultiUploadPrefix = "[[Image:"; $MultiUploadSuffix = "|thumb]]";

That could give you a result like this: Upload files (thumbnail of image 1) File uploaded successfully (thumbnail of image 2) File uploaded successfully (thumbnail of image 3) File uploaded successfully And -that- would rock my mediawiki uploading world! --Gadlen 00:21, 22 March 2008 (UTC)