The attachments functions should be refactored into a service / multiple services. This should allow better coverage with unit tests and also a better extensibility in the future.
Right now, the functions are split over several files, e.g. delete_attachments() is in functions_admin.php while upload_attachment() is in functions_posting.php.
- is duplicated by
-
PHPBB-12767 Rework functions_upload code
- Closed
- is related to
-
PHPBB-14169 Split uploaded files storage into separate class(es)
- Closed
-
PHPBB-14168 Refactor attachment management functions into classes
- Unverified Fix