Folder Management of Attachments

https://www.phpbb.com/ideas/
Post Reply
Author:
thecoalman
Posted:
Sun Dec 03, 2017 3:50 pm
Rating:
Status:
New
Ideas Bot
Registered User
Posts: 358
Joined: Sat Oct 13, 2012 10:06 am

Folder Management of Attachments

Post by Ideas Bot » Sun Dec 03, 2017 3:50 pm

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/

User avatar
david63
Jr. Extension Validator
Posts: 13118
Joined: Thu Dec 19, 2002 8:08 am
Location: Lancashire, UK
Name: David Wood
Contact:

Re: Folder Management of Attachments

Post by david63 » Sun Dec 03, 2017 4:07 pm

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!
My CDB Contributions | How to install an extension
I will not be accepting translations for any of my extensions in Github - please post any translations in the appropriate topic.
No support requests via PM or email as they will be ignored

User avatar
thecoalman
Former Team Member
Posts: 2326
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Folder Management of Attachments

Post by thecoalman » Sun Dec 03, 2017 11:49 pm

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

Post Reply

Return to “phpBB Ideas”

Who is online

Users browsing this forum: No registered users and 4 guests

cron