Avatar is not uploaded to the server. I did these lessons . Those. The form with the field for loading looks like this:
<form action="save_user.php" method="post" enctype="multipart/form-data"> <input type="file" name="fupload" size="20" maxlength="255"> </form>
The fact is that the script given in the lessons does not even perform the download, because the condition is not satisfied. The fupload element in the post request array is not at all. Why?
Here is the script itself checking the existence of the variable fupload:
if (isset($_POST['fupload'])) { $fupload = $_POST['fupload']; $fupload = trim($fupload); if ($fupload == '') { unset($fupload); } } if (!isset($fupload) or $fupload == '') { $avatar = "avatars/net-avatara.jpg"; }