Extension:UploadLocal

Special:UploadLocal is an extension which allows the "uploading" of files already residing on the server into MediaWiki, by a special page on your mediawiki. This has numerous practical applications, notably the streamlining of the upload of large files, renaming of image files, and the ability to mass upload.

Installation
Download one of these files:


 * SpecialUploadLocal-1.1.0.zip
 * SpecialUploadLocal-1.1.0.tar.gz

Open the tarball or zip folder "SpecialUploadLocal". Extract the "SpecialUploadLocal" folders with all of the subfolders and files into your extensions/ directory. A SpecialUploadLocal folder should be created in your directory.

In LocalSettings.php, add this line:

or

Optional settings
sets the absolute path for the directory where uploaded files reside, so you can set it to whatever you want. The default is:

Also, the extension adds a new right called  and a new user group, uploader, along with sysop, are allowed to use this extension. You can change this however you want, although remember, in order for the extension to be useful, the user must also have FTP access.

Use
Upload files (via FTP) into the directory  (or whatever folder you set   to).

See Implementation Note below for coding errors.

Then go to Special:UploadLocal and you should see the files you uploaded listed there.

Follow the instructions.

Older versions of Mediawiki
This newer version does not work for at least 1.7 Mediawiki, but an earlier version of Extension:SpecialUploadLocal works for 1.7 Mediawiki.

License
Special:UploadLocal, a special page for MediaWiki Copyright (C) 2006–2008 Edward Z. Yang

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, version 2 of the License.

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.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Implementation Note
UploadLocalForm.php line 3 is incorrectly coded in the download: currently: require_once('SpecialUpload.php'); should be: require_once('SpecialUploadLocal.php');

MediaWiki 1.13 / 1.14
In order to make this extension work in MediaWiki 1.13 / 1.14, replace the following code line in UploadLocalForm.php: with: