Skip to content

Upload Picture direct From Clipboard for Mediawiki - attempt to update to modern standards with claudeAI

Notifications You must be signed in to change notification settings

gessel/ClipUploadNg

 
 

Repository files navigation

ClipUpload

The ClipUpload extension allows to upload files directly from your clipboard.

Installation

  1. CD into the extension folder e.g. # cd /usr/local/www/mediawiki/extensions/
  2. clone the fork into the original folder name e.g. git clone [email protected]:gessel/ClipUploadNg.git ClipUpload
  3. Add wfLoadExtension( 'ClipUpload' ); to your "LocalSettings.php" file.
  4. Configure this extension as needed by adding the parameters to your "LocalSettings.php" file (see the configuration section).
  5. Verify the installation on "Special:Version".

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 ([[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

Compatibility

  • Doesn't make MW 1.41 barf, but doesn't work yet either.

Links

Thanks go to

  • claude.ai
  • SLboat for the awesome original.
  • Martin Schwindl, who made the great upload extension MsUpload
  • rickyb98 for his help testing it a lot!
  • Karsten Hoffmeyer for improving the documentation

About

Upload Picture direct From Clipboard for Mediawiki - attempt to update to modern standards with claudeAI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 88.8%
  • PHP 11.2%