Difference between revisions of "Mediawiki Extension ClipUpload"
Jump to navigation
Jump to search
(Page creation) |
m (Text replacement - "[{{fullurl:{{FULLPAGENAMEE}}|action=mpdf}} Download this page as PDF]" to "") |
||
(5 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | <!-- Template Infobox Generic--> | |
− | <!-- Template Infobox | + | {{Template:Class-Infobox-Generic<!-- ALL MUST BE FILLED IN --> |
− | {{Template | ||
|image = <!-- If an logo is required, enter the link here --> | |image = <!-- If an logo is required, enter the link here --> | ||
− | |Source = [[Source::DataSource]] <!-- DataSource, | + | |Section = [[Section::{{PAGENAME}}]] |
− | | | + | |Source = [[Source::DataSource]] <!-- [[Source::DataSource]], [[Source::Query]] ... --> |
− | | | + | |Language = [[Language::English]] <!-- [[Language::English]], [[Language::Français]], [[Language::Nederlands]] --> |
− | | | + | |Topic = [[Topic::Mediawiki]] <!-- [[Topic::Mediawiki]], [[Subject::Microsoft]], ... --> |
− | |DocumentType = [[DocumentType:: | + | |SubTopic = [[SubTopic::Mediawiki Extension]] <!-- [[SubTopic::Mediawiki Extension]], [[SubTopic::Office 365]] , ... --> |
− | |LastEditBy = [[LastEditBy::{{REVISIONUSER}}]] | + | |DocumentType = [[DocumentType::Documentation]] <!-- [[DocumentType::User Guide]], [[DocumentType::Procedure]], [[DocumentType::Script]], [[DocumentType::Gallery]], ...--> |
− | |LastEdit = [[LastEdit::{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}]] | + | |LastEditBy = [[LastEditBy::{{REVISIONUSER}}]] |
− | | | + | |LastEdit = [[LastEdit::{{REVISIONYEAR}}-{{REVISIONMONTH}}-{{REVISIONDAY2}}]] |
+ | |Status = [[Status::Active]] <!--[[Status::Active]] [[Status::Development]] [[Status::Obsolete]] [[Status::Archived]] [[Status::To Delete]]--> | ||
+ | |Access = [[Access::free]] <!--[[Access::free]] [[Access::Private]] [[Access::Subscription]] --> | ||
+ | <!-- Template version 1.01 --> | ||
}} | }} | ||
+ | <!-- End of Template Infobox Generic--> | ||
== Description == | == Description == |
Latest revision as of 13:56, 14 April 2021
Source: | DataSource |
---|---|
Language: | English |
Topic: | Mediawiki |
SubTopic: | Mediawiki Extension |
Last Edit By: | DochyJP |
LastEdit: | 2021-04-14 |
Document type: | Documentation |
Status: | Active |
Access: | free |
Description
This extension is not actively maintained but is very practical.
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.
Installation
Download
Download the extension from GIT.
sudo wget https://github.com/SLboat/ClipUpload/archive/master.zip
Unzip
Decompress it via
sudo unzip master.zip
Rename folder
Rename unzipped folder ClipUpload-master into ClipUpload
sudo mv ClipUpload-master/ ClipUpload
Activate the extension
Add this into the Localsettings.php with the configuration points as needed
require_once "$IP/extensions/ClipUpload/ClipUpload.php";
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 (). - $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
- $wgClipUP_Comment
require_once "$IP/extensions/ClipUpload/ClipUpload.php"; // 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 () // $wgClipUP_MaxFileSize=500; // Allows to set the maximum size in KB for files uploadable by this extension. // Standard value is 500 // $wgClipUP_CheckSameFileSize=false; // Allows to check if the size of a file is the same as for the previously uploaded file. // Standard value is false