MediaWiki extensions manual
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
Example organicdesign.co.nz
Parameters
  • $wgAttachmentHeading
Hooks used
  • BeforePageDisplay
  • UploadForm:initial
  • UploadForm:BeforeProcessing
  • SkinTemplateTabs
  • SkinTemplateNavigation

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


  • 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 file:
    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.
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.