Extension:PageAttachment

What can this extension do?
This extension extends MediaWiki to allow adding files to a page as attachments.

By default, attachments are only allowed to be added to pages in the "Main" namespace. Through configuration changes, attachments can be allowed to be attached to any other pages under other namespaces, for example, "User Talk" pages.

Usage
Supported use-cases:
 * View attachments
 * Upload & attach a file
 * Browse/search for existing (uploaded) files and attach
 * Download an attachment
 * Remove an attachment (does not delete the file from MediaWiki repository)
 * View an attachment file's history
 * View audit log (Audit logging by default is turned off)
 * For a specific attachment
 * For all attachmnets for a page
 * Remove an attachment when the attachment file is deleted from MediaWiki repository
 * Restore an attachment when a file deleted from MediaWiki is restored and if it was attached to any page

Download instructions
Soon to be provided

Installation
Step 1

To install this extension, add the following to LocalSettings.php:

Step 2

To override defaults and to set site specific configurations, update the "SiteSpecificConfigurations.php" file.

For example see the following file contained in the downloaded package:

exmaple-configuration/SiteSpecificConfigurations.php

Step 3

Run MediaWiki's update to create required database tables. Consult update.php

Configuration parameters
Soon to be provided

User rights
This extension maintains page attachment specific rights separately.

Page attachment specific rights are:
 * View attachments
 * Upload and attach file
 * Browse/Search for existing (uploaded) files and attach
 * Remove attachments
 * Download attachments
 * View history
 * View audit log (if audit logging is enabled)

The rights can be applied: The groups/users must be valid MediaWiki groups/users.
 * At the group level
 * At a user specific level