Hi,
thx for answers.
Is it possible to make wiki store all the images in the same folder or will
it cause any problems? In case there is an existing wiki and images were
stored in a way you've described is there a way to migrate them to a single
folder (and make wiki to point to a new location) without disrupting the
wiki service?
Regards,
Aretai
On 3/7/07, Rob Church <robchur(a)gmail.com> wrote:
On 07/03/07, aretai aretai <aretaiuc(a)gmail.com> wrote:
I've checked it, but there is only some
general info. What I need is to
know
the exact location of a file when it gets
uploaded.
In the default configuration, when $wgHashedUploadDirectory is
switched on, the filename is hashed (MD5), and the first part of the
hash is exploded, e.g. "83aff429..." becomes /8/83/<full filename>.
This is appended to the upload directory and is used to store the file
proper.
The code which handles this can be found in includes/Image.php and
includes/ImageFunctions.php, e.g. wfGetHashPath() etc.
Rob Church
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l