Skip to content

Latest commit

 

History

History
46 lines (33 loc) · 1.73 KB

README.md

File metadata and controls

46 lines (33 loc) · 1.73 KB

ClipUpload

The ClipUpload extension allows to upload files directly from your clipboard.

Installation

  1. CD into the extension folder e.g. # cd /usr/local/www/mediawiki/extensions/
  2. clone the fork into the original folder name e.g. git clone git@github.com:gessel/ClipUploadNg.git ClipUpload
  3. Add wfLoadExtension( 'ClipUpload' ); to your "LocalSettings.php" file.
  4. Configure this extension as needed by adding the parameters to your "LocalSettings.php" file (see the configuration section).
  5. Verify the installation on "Special:Version".

Configuration

This extension provides three parameters available for configuration:

  • $wgClipUP_Comment
    Allows to set a standard text added to the files description upon uploading a file.
    Standard value is This file was uploaded from the clipboard ([[Category:Clipboard upload]]).

  • $wgClipUP_MaxFileSize
    Allows to set the maximum size in KB for files uploadable by this extension.
    Standard value is 500

  • $wgClipUP_CheckSameFileSize
    Allows to check if the size of a file is the same as for the previously uploaded file.
    Standard value is false

Compatibility

  • Doesn't make MW 1.41 barf, but doesn't work yet either.

Links

Thanks go to

  • claude.ai
  • SLboat for the awesome original.
  • Martin Schwindl, who made the great upload extension MsUpload
  • rickyb98 for his help testing it a lot!
  • Karsten Hoffmeyer for improving the documentation