Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Extension Upload Wizard #112

Open
freephile opened this issue Aug 29, 2024 · 0 comments
Open

Add Extension Upload Wizard #112

freephile opened this issue Aug 29, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request MediaWiki extension extensions to MediaWiki core UI / UX User eXperience or Interface related

Comments

@freephile
Copy link
Owner

Extension: Upload Wizard was used in QualityBox

Issue details

The configuration used to be something like this

wfLoadExtension( "UploadWizard" );
// Needed to make UploadWizard work in IE, see bug 39877
// See also: https://www.mediawiki.org/wiki/Manual:$wgApiFrameOptions
$wgApiFrameOptions = 'SAMEORIGIN';

// Use UploadWizard by default in navigation bar
// $wgUploadNavigationUrl = "$wgScriptPath/index.php/Special:UploadWizard";
$wgUploadWizardConfig = array(
  'debug' => false,
  'autoCategory' => 'Uploaded with UploadWizard',
  'feedbackPage' => 'Project:UploadWizard/Feedback',
  'altUploadForm' => 'Special:Upload',
  'fallbackToAltUploadForm' => false,
  'enableFormData' => true,  # Should FileAPI uploads be used on supported browsers?
  'enableMultipleFiles' => true,
  'enableMultiFileSelect' => true,
  'tutorial' => array('skip' => true),
  'fileExtensions' => $wgFileExtensions, //omitting this can cause errors
  'licensing' => array(
    // alternatively, use "thirdparty". Set in postLocalSettings.php like:
    // $wgUploadWizardConfig['licensing']['defaultType'] = 'thirdparty';
    'defaultType' => 'ownwork',

    'ownWork' => array(
      'type' => 'or',
      // Use [[Project:General disclaimer]] instead of default [[Template:Generic]]
      'template' => 'Project:General disclaimer',
      'defaults' => array( 'generic' ),
      'licenses' => array( 'generic' )
    ),

    'thirdParty' => array(
      'type' => 'or',
      'defaults' => array( 'generic' ),
      'licenseGroups' => array(
        array(
          'head' => 'mwe-upwiz-license-generic-head',
          'template' => 'Project:General disclaimer', // again, use General disclaimer
          'licenses' => array( 'generic' ),
        ),
      )
    ),
  ),
);
@freephile freephile added enhancement New feature or request UI / UX User eXperience or Interface related MediaWiki extension extensions to MediaWiki core labels Aug 29, 2024
@freephile freephile self-assigned this Nov 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request MediaWiki extension extensions to MediaWiki core UI / UX User eXperience or Interface related
Projects
None yet
Development

No branches or pull requests

1 participant