MediaWiki talk:Upload.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Top[edit]

Please note that this script is triggered only on Special:Upload. It will not load on other pages! -- Bryan (talk to me) 14:36, 10 June 2007 (UTC)[reply]

My mistake! I didn't bother to check what the script does until after I moved it to this page. And afterwards I didn't realize my mistake! Nonetheless was there any discussion on whether this should go into the official js? At some point we have to ask ourselves whether it makes sense or whether it is just clutter. --Dschwen 18:28, 10 June 2007 (UTC)[reply]

Error i18n is not defined[edit]

Getting "Uncaught ReferenceError: i18n is not defined" on special upload page loading.

Upload work from Flickr[edit]

I prefer using the Upload an image from Flickr tool, but I couldn't find where to link it... Yuval Y § Chat § 02:14, 3 November 2007 (UTC)[reply]

There is a link at MediaWiki:Uploadtext/fromflickr. -- Bryan (talk to me) 09:36, 3 November 2007 (UTC)[reply]
I guess it's me who placed it there ;-) Yuval Y § Chat § 15:15, 3 November 2007 (UTC)[reply]
I really love this tool, as you can see :-) Yuval Y § Chat § 15:16, 3 November 2007 (UTC)[reply]

Anon upload error[edit]

I discovered this by accident when I tried to upload without being logged in. I got this error message:

TypeError: document.getElementById("mw-upload-permitted") is null
http://commons.wikimedia.org/w/index.php?title=MediaWiki:Upload.js&action=raw&ctype=text/javascript (180)

Rocket000(talk) 20:43, 19 March 2009 (UTC)[reply]

Heh! Hyper-cool; the new onload hook handling caught the first bug! Fixed now (it again was in that dreaded hidePdfAllowed). Lupo 21:07, 19 March 2009 (UTC)[reply]
That was fast! Now I don't even see the "Upload a new version of this file" link when not logged in. Good work! Rocket000(talk) 21:25, 19 March 2009 (UTC)[reply]
Huh? But that "Upload a new version of this file" on file description pages has got nothing to do with MediaWiki:Upload.js... As to being fast: first, it was pure chance I saw your report within 20 minutes, and second, with good error messages that even give the source location fixing things is a snap. Lupo 21:53, 19 March 2009 (UTC)[reply]
Yeah, I didn't think it was related after seeing what you changed, but the link's gone somehow. I'll investigate. Rocket000(talk) 23:14, 19 March 2009 (UTC)[reply]
I think what happened was when I first went to the image's page, I was logged in (this explains the link being there), but then I got logged out somehow without refreshing the page. Rocket000(talk) 23:22, 19 March 2009 (UTC)[reply]

error in Opera 10 when opening[edit]

error in Opera 10 when opening http://commons.wikimedia.org/w/index.php?title=Special:Upload

JavaScript - http://commons.wikimedia.org/w/index.php?title=Special:Upload&uselang=deownwork

Uncaught exception: ReferenceError: Undefined variable: i18n
Error thrown at line 38, column 2 in <anonymous function: install>() in http://commons.wikimedia.org/w/index.php?title=MediaWiki:Upload.js&action=raw&ctype=text/javascript:
    if (typeof(UFUI) != 'undefined' && typeof(i18n[UFUI.userLanguage]) == 'string')
called from line 64, column 50 in <anonymous function>() in http://commons.wikimedia.org/w/index.php?title=MediaWiki:Upload.js&action=raw&ctype=text/javascript:
    licenseChecker.install();
called from line 20, column 72 in <anonymous function: ready>() in http://bits.wikimedia.org/skins-1.5/common/jquery.min.js?283-12:
    fn.call(document,jQuery);
called via Function.prototype.call() from line 44, column 233 in <anonymous function: DOMContentLoaded>() in http://bits.wikimedia.org/skins-1.5/common/jquery.min.js?283-12:
    jQuery.ready();
</code>

Cheers --Saibo (Δ) 15:09, 26 November 2010 (UTC)[reply]

Parameter Capitalization[edit]

As per information silliness and open consistency there is some request to solve this. What is the need to made the parameters consistent uppercase (and other versions lowercase)? I recommend to made all lowercase, mainly to match consistently to the Upload Wizard (and also default code-settings on Template:Information). Any comment is welcome (preferably on the open VP thread). User: Perhelion 18:23, 25 May 2016 (UTC)[reply]

Broken JavaScript[edit]

MediaWiki developers found that this page probably breaks JavaScript for users (example: not seeing the buttons when editing a page). You probably need to edit this .js page and/or MediaWiki:Gadgets-definition as in the examples at phabricator:T122755. List more pages to check.

If you have questions or need help, please ask at phabricator:T164242. You can login with your wiki account. Best wishes, Nemo 09:49, 14 May 2017 (UTC)[reply]

Loaded via MediaWiki:Common.js with mw.loader.using, so this is fine. --Zhuyifei1999 (talk) 10:51, 14 May 2017 (UTC)[reply]

Macedonian (mk) for string[edit]

{{Editprotected}}

Hello. Could someone put this mk version on the page? Thanks a lot! --B. Jankuloski (talk) 08:59, 17 April 2019 (UTC)[reply]

'mk': 'Избраната лиценца е <b>неприфатлива за Ризницата</b>, што значи дека подигнатото ќе биде <b>избришано</b>!',
✓ Done --Didym (talk) 18:44, 31 May 2019 (UTC)[reply]

Slovenian (sl)[edit]

{{Editprotected}} Hello. Could someone please add the following translation for Slovenian?

'sl': 'Izbrana licenca <b>ni sprejemljiva za Wikimedijino zbirko</b>, zato bo vaša naložena datoteka <b>izbrisana</b>!',

Thank you! --TadejM (t/p) 00:40, 24 January 2023 (UTC)[reply]

✓ Done --Lucas Werkmeister (talk) 21:36, 25 January 2023 (UTC)[reply]