1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/13904] Move form_upload to its own class and define type classes

PHPBB3-13904
This commit is contained in:
Marc Alexander
2015-07-14 16:15:39 +02:00
parent c65f0d748a
commit 11b2c938c6
6 changed files with 210 additions and 80 deletions

View File

@@ -433,7 +433,7 @@ function upload_attachment($form_name, $forum_id, $local = false, $local_storage
$upload->set_allowed_extensions(array_keys($extensions['_allowed_']));
/** @var \phpbb\files\filespec $file */
$file = ($local) ? $upload->local_upload($local_storage, $local_filedata) : $upload->form_upload($form_name, $plupload);
$file = ($local) ? $upload->local_upload($local_storage, $local_filedata) : $upload->handle_upload('form', $form_name);
if ($file->init_error())
{