On Sun, Jun 16, 2002 at 06:34:37PM +0200, Magnus Manske wrote:
I think the soultion for the upload page is as follows:
This "solution" is very bad, I already told it to lcrocker (author of the new codebase), I'm only going to repeat it now.
- Only certain file types are allowed (JPEG/JPG/PNG, maybe)
All formats should be allowed, including: * sounds * movies * scripts * tarballs * any other multimedia files that might happen to be useful at some point * any other type of files
- We need a better way to link to images ([[image:xyz.jpg]], for example),
so we can maintain a list of used images
* not every file is image * it will break linking from more than 1 wikipedia
- A better structure is needed for storing these files (S/ST/STUFF.JPG
instead of just stuff.jpg, for example)
If you ever happen to have performance problems, just switch to reiserfs. It easily handles hundreds of thousands files in single directory. But I wouldn't expect problems with ext2 to appear anytime soon.
And it's bad solution because you'll get badly balanced tree, with some subdirectories having many times more files than others.
If you seriously think about tree structure, you should use substr(md5($name),0,2) - that is 256 well-balanced subdirectories.