https://tracker.phpbb.com/browse/PHPBB3-15289
https://github.com/phpbb/phpbb/pull/4895
Subfolder system for attachments
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.1. If you need support for phpBB 3.1 please visit the 3.1.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Re: Subfolder system for attachments
It is solved if you use a cloud provider yes. But it also makes it easy to solve for the local storage: we can handle it completely in the local adapter. (Maybe with a fallback check for BC reasons)
Member of the phpBB Development-Team
No Support via PM
No Support via PM
Re: Subfolder system for attachments
Yes, it can be done.
About backwards compatibility, i think it may not be necessary, i have an idea.
Re: Subfolder system for attachments
I have submitted a pr for this https://github.com/phpbb/phpbb/pull/4968
Re: Subfolder system for attachments
Interesting, I hope you tested it.rubencm wrote: ↑Thu Sep 21, 2017 8:38 pmI have submitted a pr for this https://github.com/phpbb/phpbb/pull/4968
By the way, what if the board gets upgraded from a previous version? Will the existing attachments (all in one folder) still work?
Re: Subfolder system for attachments
Not much really
The number of subfolders used is configurable, and by default is 0 (no subfolders)
Re: Subfolder system for attachments
So, no transition from 0 to 2 subfolders and thus no use for the existing forums?
Re: Subfolder system for attachments
If you change the configuration (you change the number or subdirectories or the mail directory, or even the storage system), all files will be moved from one configuration to another (but sill isnt done)