Jump to content

Extension:EnhancedUpload

From mediawiki.org
MediaWiki extensions manual
EnhancedUpload
Release status: stable
Description Provides a special page with the option to upload one or multiple files to the wiki
Author(s) Hallo Welt! GmbH
Latest version 3.0.0-alpha
Compatibility policy For every MediaWiki release that is a Long Term Support release there is a corresponding branch in the extension.
MediaWiki 1.35+
License GNU General Public License 3.0 only
Download
  • $wgEnhancedUploadAllowMismatchedMimeTypes
  • $wgEnhancedUploadOverrideStandardUpload
  • $wgEnhancedUploadDragDropImagesAlignment
  • $wgEnhancedUploadDragDropImagesWidth
  • $wgEnhancedUploadDragDropImagesType
  • $wgEnhancedUploadDragDropImagesHeight
Quarterly downloads 6 (Ranked 127th)
Translate the EnhancedUpload extension if it is available at translatewiki.net

This extension adds a new special page for multi-uploading and improves drag-and-drop uploading in VisualEditor. It adds a "new file" menu to the edit toolbar.

It also introduces the ‎<attachments /> tag that allows to maintain file lists on pages easily.

Installation

[edit]
  • Install Extension:OOJSPlus and Extension:VisualEditor extensions first, since they are required.
  • Download and move the extracted EnhancedUpload folder to your extensions/ directory.
    Developers and code contributors should install the extension from Git instead, using:cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EnhancedUpload
  • Add the following code at the bottom of your LocalSettings.php file:
    wfLoadExtension( 'EnhancedUpload' );
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration

[edit]

You can set some variables in the "LocalSettings.php" file:

$wgEnhancedUploadDragDropImagesAlignment = 'none'; (default = 'right')
image alignment
$wgEnhancedUploadDragDropImagesWidth = '600px';
image width
$wgEnhancedUploadDragDropImagesHeigth = '600px';
image height
$wgEnhancedUploadDragDropImagesType = 'frameless'; (default = 'thumb', other options 'frameless', 'frame', 'basic')
image type
$wgEnhancedUploadAllowMismatchedMimeType = 'true'; (default = 'false')
allow mismatched mime types
[edit]