Extension:FileAttach

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manualManual:Extensions
Crystal Clear action run.svg
FileAttach

Release status:Extension status unmaintained

ImplementationTemplate:Extension#type Page action
DescriptionTemplate:Extension#description Allows files to be uploaded to the current page
Author(s)Template:Extension#username Milan Holzapfel (Milantalk)
Latest versionTemplate:Extension#version 1.0.4 (2013-01-29)
MediaWikiTemplate:Extension#mediawiki 1.16+
Database changesTemplate:Extension#needs-updatephp No
LicenseTemplate:Extension#license GNU General Public License 2.0 or later
Download from external repository
CHANGELOG
ExampleTemplate:Extension#example organicdesign.co.nz
ParametersTemplate:Extension#parameters
  • $wgAttachmentHeading
Hooks usedTemplate:Extension#hook
BeforePageDisplayManual:Hooks/BeforePageDisplay
UploadForm:initialManual:Hooks/UploadForm:initial
UploadForm:BeforeProcessingManual:Hooks/UploadForm:BeforeProcessing
SkinTemplateTabsManual:Hooks/SkinTemplateTabs
SkinTemplateNavigationManual:Hooks/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
  • YesY Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.