Extension:EnhancedUpload

From Linux Web Expert


File:MediaWiki Stakeholders' Group Logo.svg <translate> This extension is maintained by a member of the <tvar name=1>MediaWiki Stakeholders' Group </tvar>.</translate>
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 1.2-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+
Composer mediawiki/enhanced-upload
License GNU General Public License 3.0 only
Download
  • $wgEnhancedUploadAllowMismatchedMimeTypes
  • $wgEnhancedUploadOverrideStandardUpload
  • $wgEnhancedUploadDragDropImagesAlignment
  • $wgEnhancedUploadDragDropImagesWidth
  • $wgEnhancedUploadDragDropImagesType
  • $wgEnhancedUploadDragDropImagesHeight
Quarterly downloads Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Public wikis using Lua error in Module:Extension at line 172: bad argument #1 to 'inNamespace' (unrecognized namespace name 'skin').
Translate the EnhancedUpload extension if it is available at translatewiki.net

This extension adds a new special page for multi-upload and improves drag-and-drop upload in VisualEditor.

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

Installation

Install Extension:OOJSPlus and Extension:VisualEditor first, since they are required.

  • <translate> [[<tvar name=2>Special:ExtensionDistributor/EnhancedUpload</tvar>|Download]] and move the extracted <tvar name=name>EnhancedUpload</tvar> folder to your <tvar name=ext>extensions/</tvar> directory.</translate>
    <translate> Developers and code contributors should install the extension [[<tvar name=git>Special:MyLanguage/Download from Git</tvar>|from Git]] instead, using:</translate>cd extensions/
    git clone https://gerrit.wikimedia.org/r/mediawiki/extensions/EnhancedUpload
  • <translate> Add the following code at the bottom of your <tvar name=1>LocalSettings.php </tvar> file:</translate>
    wfLoadExtension( 'EnhancedUpload' );
    
  • File:OOjs UI icon check-constructive.svg <translate> Done</translate> – <translate> Navigate to <tvar name=special>Special:Version</tvar> on your wiki to verify that the extension is successfully installed.</translate>

Configuration

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

$wgEnhancedUploadDragDropImagesAlignment = 'none'; (default = 'right')
image alignment
$wgEnhancedUploadDragDropImagesWidth = '600px';
$wgEnhancedUploadDragDropImagesHeigth = '600px';
image size
$wgEnhancedUploadDragDropImagesType = 'frameless'; (default = 'thumb', other options 'frameless', 'frame', 'basic')
image type

External links