On 07/03/07, aretai aretai aretaiuc@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