Difference between revisions of "Hashed Upload Directory"
Line 1: | Line 1: | ||
− | The Upload Directory for Wiki Normal and Wiki Normal International Team is set to be | + | The Upload Directory for Wiki Normal and Wiki Normal International Team is set to be hashed. This decision was taken after lengthy consideration and compatability problems which became apparent in installing UploadWizard templates. |
− | When set to true <code>true</code></>, uploaded files will be distributed into sub-directories of UploadDirectory based on the first two characters of the md5 hash of the filename. | + | When set to true <code>true</code></>, uploaded files will now be distributed into sub-directories of UploadDirectory based on the first two characters of the md5 hash of the filename. |
− | (e.g. <code>/images/a/ab/ | + | (e.g. <code>/images/a/ab/Solyent_green.jpg</code></>) |
Creation of such subdirectories is handled automatically. | Creation of such subdirectories is handled automatically. | ||
Line 11: | Line 11: | ||
The algorithm for that is based on a md5 of the name, the first hex character is used for the first directory, then the first two characters are used for the subdirectory. | The algorithm for that is based on a md5 of the name, the first hex character is used for the first directory, then the first two characters are used for the subdirectory. | ||
− | :<code> | + | :<code>Solyent_green.png</code> → |
md5 of filename</translate> = <code>f865cbca12286c1c5b7616b4a70fbf68</code> → f + f8 = {{ll|Manual:$IP|$IP}}/images/f/f8/Foo.png | md5 of filename</translate> = <code>f865cbca12286c1c5b7616b4a70fbf68</code> → f + f8 = {{ll|Manual:$IP|$IP}}/images/f/f8/Foo.png | ||
Revision as of 06:38, 26 August 2016
The Upload Directory for Wiki Normal and Wiki Normal International Team is set to be hashed. This decision was taken after lengthy consideration and compatability problems which became apparent in installing UploadWizard templates.
When set to true true
</>, uploaded files will now be distributed into sub-directories of UploadDirectory based on the first two characters of the md5 hash of the filename.
(e.g. /images/a/ab/Solyent_green.jpg
</>)
Creation of such subdirectories is handled automatically.
This is used to avoid having too many files in one folder because some filesystems don't perform well with large numbers of files in one folder.
The algorithm for that is based on a md5 of the name, the first hex character is used for the first directory, then the first two characters are used for the subdirectory.
Solyent_green.png
→
md5 of filename</translate> = f865cbca12286c1c5b7616b4a70fbf68
→ f + f8 = Template:Ll/images/f/f8/Foo.png
If false
, all images are uploaded in <tvar|UploadDirectory>Template:Ll itself.
(e.g. /images/foo.jpg
</>)