FANDOM


This script is for PERSONAL use only!

You are free to install this script for yourself, but it is not allowed to be used wiki-wide (e.g., in MediaWiki:Common.js or MediaWiki:Wikia.js), as it would violate Fandom's Terms of Use.
(See the customization policy)

MultiUpload is a script similar to MultiUploader but in JavaScript, that allows you to select multiple files directly from the open dialog box. You can also change their upload file names and licenses. This tool is available in "My tools" menu in the bottom of the screen for autoconfirmed users. This will lead you to Special:MultiUpload where the form will be created.

Installation

Configuration

To avoid spam and image flood, the number of files that can be uploaded at a time is limited to user rights:

  • User: 20
  • Rollback: 30
  • Sysop/admin: 50
  • Bureaucrat and bot: 70
  • Staff, helper, util, global bot: 200

You can change this by adding the following configuration before the import statements. (Note that the value is capped at 100. If you set it beyond 100, it will revert to your user right limit.)

window.MultiUploadoption = {
    max: 30
};

By default, in every drop-down license menu, you will have "This will be used in a way that qualifies as fair use under US law". If you want to change it by default:

window.MultiUploadoption = {
    defaultlicense:'CC-BY-SA'
};

If you choose CC-BY-SA, you will have "This is licensed under the Creative Commons Attribution-Share Alike License" by default. To know which value to put, go to MediaWiki:Licenses on your wiki or type your language behind like MediaWiki:Licenses/fr for French. Then, put the text before the | of the license by default you want.

To enable license previews:

window.MultiUploadoption = {
    enableLicensePreview: true
};

To ensure that Licensing is required:

window.MultiUploadoption = {
    requireLicensing: true
};

To enable a default file summary (to auto-fill the summary text area): (replace Template:Templatename with the full name of the page to preload)

window.MultiUploadoption = {
    defaultDescription: 'Template:Templatename'
};

To use multiple options:

window.MultiUploadoption = {
    max: 30,
    defaultlicense:'CC-BY-SA',
    enableLicensePreview: true,
    requireLicensing: true,
    defaultDescription: 'Template:Templatename'
};

Known issues

All URL encoded are not permitted for example, in textbox, Image-picture.png will fail but Image picture.png will work.

Logs

July 25, 2020
Universal Omega: License preview functionality and other configuration options added; changed supported file extensions to be whatever wiki's the script is run on; added UCP support
June 16, 2019
KhangND: Rewrite, major improvements: Fixed asynchronous state, improved notification, added reset button...
January 1, 2015
Gguigui1: Script published

See also


Text above can be found here (edit)

Start a Discussion Discussions about MultiUpload

  • MultiUpload

    21 messages
    • It seams to be fixed now. I just used it. :)
    • Dean27 wrote:It seams to be fixed now. I just used it. :) I can't use it on my wiki :/ Here yes but on on my wiki. EDIT: Weird, The t...
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+