[ticket/12884] Add core event to the function upload_attachment()

Add core event to the function upload_attachment()
in functions_posting.php to provide ability for extensions
to perform additional actions on uploaded files, like resizing etc.

<a href="https://tracker.phpbb.com/browse/PHPBB3-12884">PHPBB3-12884</a>.