fix file delete exisiting avatar if changed

This commit is contained in:
johnnyq 2021-09-21 23:01:37 -04:00
parent a939588cf2
commit 9fe6abda11
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
</div>
<form action="post.php" method="post" enctype="multipart/form-data" autocomplete="off">
<input type="hidden" name="user_id" value="<?php echo $user_id; ?>">
<input type="hidden" name="existing_file_name" value="<?php echo "uploads/users/$user_id/$user_avatar"; ?>">
<input type="hidden" name="existing_file_name" value="<?php echo "$user_avatar"; ?>">
<div class="modal-body bg-white">
<center class="mb-3">