Skip to content

Commit

Permalink
append pdf to allowed file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
eloiferrer committed May 6, 2024
1 parent 831fb59 commit b60b6b6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mediawiki/LocalSettings.d/LocalSettings.override.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,15 @@

# Enabling uploads for images.
$wgEnableUploads = true;
$wgFileExtensions[] = ['svg', 'pdf'];
$wgFileExtensions[] = 'svg';
# Explicitly mentioning the upload-path for image-upload.
$wgUploadPath = $wgScriptPath . '/images/';
# Enable SVG converter
$wgSVGConverter = 'rsvg';

# Enable PDF upload
$wgFileExtensions[] = 'pdf';

# Extensions required by templates
wfLoadExtension( 'TemplateStyles' );
wfLoadExtension( 'JsonConfig' );
Expand Down

0 comments on commit b60b6b6

Please sign in to comment.