[admin] profile can be uploaded

This commit is contained in:
Tóth Richárd
2018-06-07 23:32:06 +02:00
parent a88c0df0d2
commit f98f1fe6e2
10 changed files with 918 additions and 2 deletions

View File

@@ -556,6 +556,15 @@ if (isset($_POST['action'])) {
log::register('update_user_group', $_POST['ug_id']);
header('Location: /admin/user_groups/'.$_POST['ug_id']);
break;
case 'upload_milestone':
$statusCode = milestone::upload_file($_FILES['fileToUpload']);
if (0 !== $statusCode) {
header('Location: /admin/milestones/'.$statusCode);
}
else {
header('Location: /admin/milestones/success');
}
break;
default:
# code...
break;