[admin] profile can be uploaded

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

No files matched your search

+9
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;