Manual:$wgFileStore

Details
File storage paths; was last used only for deleted files.

The setting contains an array of arrays. The first index is the name of the type of file being stored (currently only 'deleted' is valid) and the second index is one of the following three keys:


 * 'directory' contains the directory on the server where the files will be saved. As of version 1.17, this is superseded by .
 * 'url' contains the URL used to access the file over the internet. If the file is private (as for deleted files) this should be null. As of version 1.23, this value is ignored.
 * 'hash' contains the number of levels of subdirectory to create under the specified directory. E.g. if you set this to 3, images will be stored in paths such as   (relative to the above directories). As of version 1.17, this is superseded by .

Since MediaWiki 1.11.0
Deleted images are stored by default in "$wgUploadDirectory/deleted". $wgFileStore can be used to customize this:

The default settings are:

Prior to MediaWiki 1.11
Prior to MediaWiki 1.11, deleted files are simply discarded by default; see $wgSaveDeletedFiles for how to enable storing them. To enable undeletion, the 'deleted directory' must be defined and $wgSaveDeletedFiles must be true.

The default settings are:

Example
An example enabling saving deleted images:

The 'deleted url' can remain null (as the deleted files are private, not visible to the Internet).