Folder Management of Attachments

https://www.phpbb.com/ideas/
Post Reply
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Folder Management of Attachments

Post by thecoalman »

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.”

Attributed - Thomas Edison
User avatar
david63
Registered User
Posts: 20646
Joined: Thu Dec 19, 2002 8:08 am

Re: Folder Management of Attachments

Post by david63 »

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
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 5871
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.
Contact:

Re: Folder Management of Attachments

Post by thecoalman »

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.”

Attributed - Thomas Edison
User avatar
HaioPaio
Registered User
Posts: 265
Joined: Mon Jan 08, 2018 7:39 pm

Re: Folder Management of Attachments

Post by HaioPaio »

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.

regards
HaioPaio
www.der-räuchertreff.de phpBB 3.3.x php 7.4
User avatar
canonknipser
Registered User
Posts: 2096
Joined: Thu Sep 08, 2011 4:16 am
Location: Germany
Name: Frank Jakobs
Contact:

Re: Folder Management of Attachments

Post by canonknipser »

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").
Greetings, Frank
phpbb.de support team member
English is not my native language - no support via PM or mail
New arrival - Extensions and scripts for phpBB
Post Reply

Return to “phpBB Ideas”