Skip to content

Commit

Permalink
Update index.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Endedman committed Feb 4, 2024
1 parent 3f23d18 commit ecb41df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@
$changeAvatarError = "Image size is larger than the allowable limit.";
} else {
// move the file to the specified location
$avatar_path = JSTORE_DIR . JSTORE_UPLOAD_AVATAR_PREFIX . md5($file_name);
$avatar_path = JSTORE_UPLOAD_DIR . JSTORE_UPLOAD_AVATAR_PREFIX . md5($file_name);
$avatar_path_db = JSTORE_UPLOAD_AVATARDIR_PREFIX . md5($file_name);

if (move_uploaded_file($file_temp, $avatar_path)) {
Expand Down

0 comments on commit ecb41df

Please sign in to comment.