mediawiki/simple-batch-upload
Basic, no-frills uploading of multiple files to MediaWiki
Fund package maintenance!
JeroenDeDauw
Installs: 19 314
Dependents: 0
Suggesters: 0
Security: 0
Stars: 23
Watchers: 7
Forks: 17
Open Issues: 9
Type:mediawiki-extension
pkg:composer/mediawiki/simple-batch-upload
Requires
- php: >=8.0
- composer/installers: ^2|^1.0.1
Requires (Dev)
None
Suggests
None
Provides
None
Conflicts
None
Replaces
None
GPL-2.0-or-later cdaefe097a1a22178392d7cd8d9c6e893590217f
- Professional Wiki<info.woop@Professional.Wiki>
- Stephan Gambke<s7eph4n.woop@gmail.com>
README
TheSimpleBatchUpload extension provides basic,no-frills uploading of multiple files to MediaWiki.
It is maintained byProfessional Wiki.Contact us for commercial support orMediaWiki development.
Requirements
- PHP 8.0 or later
- MediaWiki 1.43 or later
Use SimpleBatchUpload 2.x for older versions
Installation
Composer
COMPOSER=composer.local.json composer require --no-update mediawiki/simple-batch-upload:^3.0
composer update mediawiki/simple-batch-upload --no-dev -o
Manual installation
Download and place the files in a directory calledSimpleBatchUpload in yourextensions/ folder.
Enable the extension by adding the following to your LocalSettings.php:
wfLoadExtension('SimpleBatchUpload' );
Usage
See theSimpleBatchUpload usage documentation.
Customization
It is possible to specify dedicated parameter sets for the upload of specificfile types by editing theMediaWiki:Simplebatchupload-parameters page. Eachline of that page is considered as one set of parameters.
Available parameters are:
- Name of template to be stored as text on initial upload
- Upload comment
- Title line of the Special:BatchUpload page
Parameters should be separated by pipes (|).
The line to be used is selected by appending the name of the template as thesubpage to the URL of the Special:BatchUpload page.
Example:
Consider the parameter line
Pics | These pics were uploaded using [[mw:Extension:SimpleBatchUpload{{!}}SimpleBatchUpload]] | Upload some pics!- This can be selected by going toSpecial:BatchUpload/Pics.
- The title of this page will beUpload some pics!.
- The comment for the upload will beThese pics were uploaded using [[mw:Extension:SimpleBatchUpload{{!}}SimpleBatchUpload]].
- If a file with that name is uploaded for the first time it will have
{{Pics}}as wikitext.
Configuration
Available configuration options:
$wgSimpleBatchUploadMaxFilesPerBatch- Array defining the maximum number offiles that can be uploaded each time depending on the user group.
Default:
$wgSimpleBatchUploadMaxFilesPerBatch = ['*' =>1000,];
Note: Be aware that this is not the right setting to completely block fileuploads! Users can still use the normal file upload or the MediaWiki API. Seethe paragraph on user permissions onConfiguring file uploadson mediawiki.org.
License
GNU General Public License 2.0 or later