Add files via upload

This commit is contained in:
Fernando Méndez
2021-06-07 09:37:40 +02:00
committed by GitHub
parent df9f8176d4
commit efa3c6e31d
3 changed files with 5 additions and 10 deletions

View File

@ -102,7 +102,7 @@ class FormRegister extends Form {
$_SESSION["nombre"] = $this->user->getName();
$_SESSION["rol"] = $this->user->getRol();
$_SESSION["login"] = true;
$img = "../img/users/user.jpg"; //USER_PICS
$img = "../img/tmp/user.jpg"; //TMP_DIR
$profile_img = "../img/users/".$nombre.".jpg";
copy($img, $profile_img);
$result = ROUTE_APP."register/register.php";