I am just curious: Is it possible for admins to upload files into images directory by Linux's copy command and establish MediaWiki links later? I guess I have to know the rule about where to put them and the table in MySQL storing the information about a file name and its path before doing this. We have lots of files to be uploaded.
Kiss All wrote:
I guess I have to know the rule about where to put them
I'm not sure what exactly you're asking, but here's how to find out what directory a file will be saved to when uploaded. I'll use the example of [[Image:Daniel_Butterfield.jpg]]:
$ echo -n "Daniel_Butterfield.jpg" | md5sum 20a53701ddbce09dacb120b6a100ff37 -
You take the first two characters of this checksum. The path is /upload/2/20/Daniel_Butterfield.jpg where the "2" is the first character and the "20" is the first two.
Timwi
wikitech-l@lists.wikimedia.org