MsUpload

From BITPlan Wiki
Jump to navigation Jump to search

Extension

Extension
edit
name  MsUpload
url  https://www.mediawiki.org/wiki/Extension:MsUpload
purpose  The MsUpload extension allows users to upload multiple files by drag & drop in the standard MediaWiki edit page.
since  2013/04/17
wiki  capri,io,s,q,merkur

Freitext

Installation

cd /usr/local/src
sudo wget https://extdist.wmflabs.org/dist/extensions/MsUpload-REL1_35-5998b96.tar.gz
cd /var/www/mediawiki/code/extensions
tar xvfz /usr/local/src/MsUpload-REL1_35-5998b96.tar.gz
sudo chown -R www-data.www-data .

Patch for PdfEmbed

         $( '<a>' ).text( mw.msg( 'msu-insert-embed-pdf' ) ).click( function () {
              MsUpload.insertText( '<pdf>' + file.name + '</pdf>' ); // Insert pdf  link
          } ).appendTo( file.li );