File uploads

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cybershaolin
    Member
    • Nov 2006
    • 38
    • 3.8.x

    File uploads

    I'd like to get some info on how vBulletin handle the creation of directories when you assign your file uploads to be done on the server instead of within the DB.

    How can we avoid to have many subdirectories created? Is this possible?

    What I have in my file folder on the server is something like this:

    /public_html/forums/files/4/
    /public_html/forums/files/2/
    /public_html/forums/files/2/1/6/9/
    /public_html/forums/files/2/6/7/
    /public_html/forums/files/1/6/
    /public_html/forums/files/1/2/7/

    Why does vBulletin not put all files in only one folder like:
    /public_html/forums/files/ ?

    Is there a way to do that?
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74153

    #2
    The directories are created by userid... /4/ = userid 4. /2/1/6/9/ = 2169.

    It is done this way because some older file systems have limits to the number of files per directory and this prevents us from ever coming across that limit. There is no way to tell the software to store them all in one directory without rewriting the entire attachment subsystem.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
    Working...