Split file folder into multiple folders, if you have a lot of files it gets difficult to open with a lot of FTP clients and it would be easier to get to specific users images if they were in a specific folder.
I would propose they be named based on user ID. Perhaps a folder 0000 for users 1 to 999 the next folder named 1000 for users 1000 to 1999 etc. Each user get their own folder by user ID inside those folders. eg user ID 1500 is in files/1000/1500/
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
I would suggest that a "user" folder should only be created when the user actually uploads an attachment otherwise there will be a multitude of unused folders taking up disk space.
Not sure how, or even if, there would be a way to migrate the current attachments.
David Remember: You only know what you know and - you don't know what you don't know!
I now no longer support any of my extensions but they will start to become available here
david63 wrote: ↑Sun Dec 03, 2017 4:07 pm
Not sure how, or even if, there would be a way to migrate the current attachments.
This could be done with the cron script and database entry, yes? CLI for those that can use it. Perhaps standalone script for offline on local computer.
I'm at the point now where I have 120K files in the attachment folder and no it's not a porn site. I have to do something, I'm considering just editing the script to point it to files-archives for attachment ID < XXXXXX
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”
Hi there
I noticed that the status of this great idea is set to "implemented".
However, I could not find out which software version is supporting this function. In addition i would need to know how to operate that feature.
Help would be highly appreciated.
According to the tracker ticket linked in the idea it will be implemented in 3.3, a soon upcoming version (but like the next book of "Game of Thrones" - which is also upcoming "soon").