Hi, ive got a problem with mediashare. Im sure everyone noticed that it creates too many directories on the web server in the "mediashare" folder. Its like 1 directory for each image. is there any way to change this. ive got to upload several thousand photos and im affraid that this may affect the web server. can anyone help pls. tnx.
Posted: 12.02.2007, 22:01
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
It's not one directory for each image - it's up to approx. 40x40=1600 directories, which is maybe a bit too much, but storing all images in one directory yields the same problem: too many files in one directory. So that's why they are spread out a bit.
Posted: 13.02.2007, 08:30
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
oh..that is fine then. so, am i right that when the number of directories reaches 1600 the program will start adding files to existing directories? and why is it 1600? tnx. :-?
Posted: 13.02.2007, 13:52
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
The two-letter directories are built from the first two letters in the image filename - which are random [a-z0-9] characters, which is approx. 40 characters (for easy math).
Since the directory names are random you might end up with 10 images in one directory and 1 in another. It's a simple form for hashing mechanism.
Posted: 15.02.2007, 12:49
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
and one more q. when mediashare creates directories, they all have the 777 permissions, which is potentially vulnerable, is there any way to change this automatically? or it should be done manually? tnx.
Posted: 26.11.2007, 19:34
rank:
12
registered:
March 2009
Status:
offline
last visit:
Posts:
0
On my server, Mediashare is not allowed to create sub-directories. On the other hand, for performance, I'm not very interested by the database solution ... perhaps someone have an issue on this point ?