Difference between revisions of "Mediawiki Extension MsUpload"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
	
	
        
		
	
| m (Type fault correction) | 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 =  | + | 	|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  | + | <!-- 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
The MsUpload extension allows users to upload multiple files by drag & drop in the standard MediaWiki edit page.
Features
- Easily upload one or multiple files simultaneously.
- File upload integrated in the edit page.
- Upload via drag and drop (if HTML5 is available in browser).
- Add the file into the edit page as a link.
- Add the files into the edit page as a gallery.
- Change the name of the file before uploading.
- Add files to the current category, if the page being edited is a category page.
 
Installation
Download
Download and place the file(s) in a directory called MsUpload in your extensions/ folder.
Activation
Add the following code at the bottom of your LocalSettings.php:
wfLoadExtension( 'MsUpload' );
Configuration
Features
Below are the special extension features that you can set in your LocalSettings.php:
- $wgMSU_useDragDrop = true; // Should the drag & drop area be shown? (Not set by default)
- $wgMSU_showAutoCat = true; // Files uploaded while editing a category page will be added to that category
- $wgMSU_checkAutoCat = true; // Whether the checkbox for adding a category to a page is checked by default
- $wgMSU_useMsLinks = false; // Insert links in Extension:MsLinks style?
- $wgMSU_confirmReplace = true; // Show the "Replace file?" checkbox
- $wgMSU_imgParams = 'thumb|none'; // Any image parameter(s), delimited by pipes, e.g., {width}px, left, right, center, none, border, frameless, frame, thumb etc.
 
Relevant global configuration variables
Below are some of the relevant global configuration variables that you can set in your LocalSettings.php:
- $wgEnableWriteAPI = true; // Enable the API
- $wgEnableUploads = true; // Enable uploads
- $wgAllowJavaUploads = true; // Solves problem with Office 2007 and newer files (docx, xlsx, etc.)
- $wgGroupPermissions['user']['upload'] = true; // Allow regular users to upload files
- $wgFileExtensions = array('png','gif','jpg','jpeg','doc','xls','pdf','ppt','tiff','bmp','docx','xlsx','pptx');
 // Make sure that the file types you want to upload are allowed:
 
Remark
You should know
- Without HTML5 support Adobe Flash is used
- The maximum file size depends on MediaWiki settings but a lower limit may be set.
- Uses the plupload upload handler, which comes included with the extension
- Adds an upload icon to the editor and WikiEditor.
 
See also
Extension:MsWikiEditor Extension:MsUpload Extension:MsLinks Extension:MsInsert