Extension:FileAttach

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
FileAttach
Release status: unmaintained
Implementation Page action
Description Allows files to be uploaded to the current page
Author(s) Milan Holzapfel (Milantalk)
Latest version 1.0.4 (2013-01-29)
MediaWiki 1.16+
Database changes No
License GNU General Public License 2.0 or later
Download from external repository
CHANGELOG
Example organicdesign.co.nz
Parameters
  • $wgAttachmentHeading
Hooks used
BeforePageDisplay
UploadForm:initial
UploadForm:BeforeProcessing
SkinTemplateTabs
SkinTemplateNavigation
Translate the FileAttach extension if it is available at translatewiki.net
Check usage and version matrix.

The FileAttach extension allows files to be uploaded to the wiki from an "add attachment" tab in the page actions. The tab brings up the usual file upload special page, but then, when submitted, the file is added as an icon in a "File attachments" section at the end of the page, in addition to being uploaded into the wiki as usual.

Installation[edit]

The downloaded zip file contains all extensions in the Git repository of OrganicDesign. You will have to unzip and just use the folder "FileAttach" to install this particular extension.


  • Download and place the file(s) in a directory called FileAttach in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/FileAttach/FileAttach.php";
    
  • Configure file uploads
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.