Manual:$wgHashedUploadDirectory

From MediaWiki.org

Jump to: navigation, search
Uploads: $wgHashedUploadDirectory
If true, uses the /a/ab/foo.jpg directory structure.
Introduced in version: 1.4.0
Removed in version: still in use
Allowed Values: (boolean)
Default Value: true

Other settings: Alphabetical | By Function


[edit] Details

If true, new subdirectory is created in /images folder (e.g. /images/a/ab/foo.jpg) for each file upload. If false, all images are uploaded in /images folder itself.

Note Note: : This parameter should not be changed after the first image or file has been uploaded (or you need to move all previous uploaded pictures). It will result in php-errors (see the discussion page) if articles with the old logic try to find their pictures, since the image path is calculated and not stored in the database.

Personal tools