Extension:ClipUpload

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
ClipUpload
Release status: stable
Implementation Media, Page action, Skin
Description Allows to upload files directly from your clipboard
Author(s) SLboat (Theslboattalk)
Latest version 1.3.0 (2017-01-17)
MediaWiki 1.20+
Database changes No
License GNU General Public License 2.0 or later
Download
Parameters
  • $wgClipUP_Comment
  • $wgClipUP_MaxFileSize
  • $wgClipUP_CheckSameFileSize
Hooks used
EditPage::showEditForm:initial
Translate the ClipUpload extension if it is available at translatewiki.net
Check usage and version matrix.

The ClipUpload extension is similar to the MsUpload extension with the exception that it takes the files to be uploaded from the clipboard. It uses "InlineAttachment" to perform its task.

Since version 1.3.0 of January 17, 2017 the browsers Chrome, Firefox and Opera are supported.

Demo[edit]

This demo shows how easy it is to upload a file with this extension:

Demo GIF of this extensions functionality

Installation[edit]

  • Download and place the file(s) in a directory called ClipUpload in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/ClipUpload/ClipUpload.php";
    
  • Configure this extension as needed (see the configuration section).
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration[edit]

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

Thanks go to[edit]

  • rickyb98 for his help testing it a lot!
  • Martin Schwindl, who made the great upload extension MsUpload
  • Karsten Hoffmeyer, for his work on translations!
  • Roy van Kaathoven, for the upload plugin (https://github.com/Rovak/InlineAttachment)

See also[edit]