-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
38 lines (32 loc) · 1.47 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
**** DISCLAIMER ****
Copyright (C) 2010 - Jens Nyman <[email protected]>
Copyright (C) 2011 - Simon Peeters <[email protected]>
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
details.
**** DESCRIPTION ****
This extension implements a new tag, <filelist>, which generates a list of
all images or other media that were uploaded to the page. Also, the tag adds
an input field to add a new file if the user is alowed to upload.
**** INSTALLATION ****
- copy FileList/ to extensions folder
- Add to LocalSettings.php:
require_once("$IP/extensions/FileList/FileList.php");
$wgFileListConfig['upload_anonymously'] = false; // set this if uploads need to be anonymous
- Allow file uploads
- set allowed file types to something like
$wgFileExtensions = array(
'pdf','rar','zip','txt','7z','gz',
'doc','ppt','xls',
'docx','pptx','xlsx',
'odt','odp','ods',
'mws', 'm', 'cad', 'dwg', 'java',
'jpg','jpeg','gif','png',
);
**** NOTES ****
as of this update the FileList extension no longer changes global settings.