From Support Wiki
Jump to navigation Jump to search

uploadMultipleFiles is a gadget for wikis that allows you to upload multiple images at once.

Installation instructions


Remember, JavaScript can be used maliciously; please make sure you trust the source of any JS you're copying to your wiki! A protected namespace on the wiki.gg Support Wiki should be safe, but it's still a good idea to check the version history and make sure there aren't any suspect recent changes (e.g., if someone's account was compromised).

  1. You need to be a local/community admin on your wiki to follow these steps, since it involves editing pages in the MediaWiki namespace.
  2. Copy the contents of MediaWiki:Gadget-uploadMultipleFiles to your wiki. This is the translation string that will display when people look at information about the gadget, so you can modify it if needed.
  3. Copy the source code to your wiki. This includes the contents of the following pages:
  4. At MediaWiki:Gadgets-definition on your wiki, APPEND ONE of the following three options, depending on what config option you want.
    • * uploadMultipleFiles[ResourceLoader|default|hidden]|uploadMultipleFiles.js = it's available to everyone with no opt-out ability
    • * uploadMultipleFiles[ResourceLoader|default]|uploadMultipleFiles.js = it's available to everyone but you can opt out in your user page
    • * uploadMultipleFiles[ResourceLoader]|uploadMultipleFiles.js = by default it's not turned on, but you can turn it on in settings
  5. Incorporate the license templates on Help:Licenses into your wiki.
  6. You may have to wait somewhere between 5 and 15 minutes at this time for server-side cache to update.
  7. Done! Make sure you cache refresh on your browser (Ctrl+F5) on the upload page to see changes.

How to use

  1. Go to Special:Upload
  2. If you just now added this gadget, press Ctrl+F5 (cache refresh) to update your local cache.
  3. Toggle this:
    MultiUpload screenshot.png