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. Note that for this extension to be useful, the user must have FTP access.

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
The default folder where the upload files are uploaded, is set by, 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.

Required modification for MediaWiki 1.13 to 1.15
In order to make this extension work in MediaWiki 1.13 to 1.15, replace the following code line in UploadLocalForm.php: with:

The error is this is not adjusted looks like this:

Warning: require_once(SpecialUpload.php) [function.require-once]: failed to open stream: No such file or directory in /home/content/c/2/o/c2/html/dr/extensions/SpecialUploadLocal/UploadLocalForm.php on line 3

Fatal error: require_once [function.require]: Failed opening required 'SpecialUpload.php' (include_path='/home/content/c/2/o/c2/html/dr:/home/content/ c/2/o/c2/html/dr/includes:/home/content/c/2/o/c2/html/dr/languages:.:/usr/local/php5/lib/php') in /home/content/c/2/o/c2/html/dr/extensions/SpecialUploadLocal/UploadLocalForm.php on line 3

Does not work for Mediawiki 1.16
Edward Z. Yang, the creator of this extension, stated he will not update this extension for 1.16. An editor explained that: "It is nearly impossible to make an extension for both 1.15 and 1.16. We need a new extension especially for 1.16."

Modifications to work with MediaWiki 1.17
May also work for MediaWiki 1.16 too, try it.

In the file SpecialUploadLocal.php Find line 36 : Replace with:

In the file UploadLocalForm.php Find line 3:

Replace with:

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.

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