mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 02:44:53 +00:00
Fix self avatar uploading
This commit is contained in:
@@ -49,7 +49,7 @@ if (isset($_POST['edit_your_user_details'])) {
|
||||
}
|
||||
|
||||
// Photo
|
||||
if (isset($_FILES['file']['tmp_name'])) {
|
||||
if (isset($_FILES['avatar']['tmp_name'])) {
|
||||
if ($new_file_name = checkFileUpload($_FILES['avatar'], array('jpg', 'jpeg', 'gif', 'png', 'webp'))) {
|
||||
|
||||
$file_tmp_path = $_FILES['avatar']['tmp_name'];
|
||||
|
||||
Reference in New Issue
Block a user